Skip to content

Commit

Permalink
motion fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ulusoyca committed Jan 23, 2022
1 parent e94cb5a commit fe0d291
Show file tree
Hide file tree
Showing 31 changed files with 841 additions and 572 deletions.
6 changes: 3 additions & 3 deletions 001-theme-switch-with-provider/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ packages:
name: characters
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
version: "1.2.0"
charcode:
dependency: transitive
description:
Expand Down Expand Up @@ -316,7 +316,7 @@ packages:
name: vector_math
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
version: "2.1.1"
win32:
dependency: transitive
description:
Expand All @@ -332,5 +332,5 @@ packages:
source: hosted
version: "0.2.0"
sdks:
dart: ">=2.13.0 <3.0.0"
dart: ">=2.14.0 <3.0.0"
flutter: ">=2.0.0"
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'dart:math';

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_lorem/flutter_lorem.dart';

Expand Down
4 changes: 2 additions & 2 deletions 003-single-page-scrollable-website/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ packages:
name: characters
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
version: "1.2.0"
collection:
dependency: transitive
description:
Expand Down Expand Up @@ -225,7 +225,7 @@ packages:
name: vector_math
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
version: "2.1.1"
win32:
dependency: transitive
description:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,41 @@
# Uncomment the next line to define a global platform for your project
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}

def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
unless File.exist?(generated_xcode_build_settings_path)
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end

File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT\=(.*)/)
return matches[1].strip if matches
end
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end

require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

flutter_ios_podfile_setup

target 'Runner' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
use_modular_headers!

# Pods for Runner
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end

post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end
end
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
PODFILE CHECKSUM: 145db09314730361a62c5d7f3d6085f6bbd43761
PODS:
- Flutter (1.0.0)
- path_provider_ios (0.0.1):
- Flutter

DEPENDENCIES:
- Flutter (from `Flutter`)
- path_provider_ios (from `.symlinks/plugins/path_provider_ios/ios`)

EXTERNAL SOURCES:
Flutter:
:path: Flutter
path_provider_ios:
:path: ".symlinks/plugins/path_provider_ios/ios"

SPEC CHECKSUMS:
Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a
path_provider_ios: 7d7ce634493af4477d156294792024ec3485acd5

PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c

COCOAPODS: 1.11.2
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@
97C146EC1CF9000F007C117D /* Resources */,
9705A1C41CF9048500538489 /* Embed Frameworks */,
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
479BD7C7CB5B3D15A4C71A5A /* [CP] Embed Pods Frameworks */,
);
buildRules = (
);
Expand Down Expand Up @@ -211,6 +212,23 @@
shellPath = /bin/sh;
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
};
479BD7C7CB5B3D15A4C71A5A /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
9740EEB61CF901F6004384FC /* Run Script */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
import 'package:flutter/material.dart';
import 'package:flutter/scheduler.dart';
import 'package:material_design_icons_flutter/material_design_icons_flutter.dart';
import 'package:multi_page_scrollable_bottom_sheet/resources/colors/app_colors.dart';
import 'package:multi_page_scrollable_bottom_sheet/widgets/buttons/circular_button.dart';
import 'package:multi_page_scrollable_bottom_sheet/widgets/buttons/primary_button.dart';

class HomeScreen extends StatefulWidget {
final Function(BuildContext context) showScrollableBottomSheet;

const HomeScreen({Key? key, required this.showScrollableBottomSheet}) : super(key: key);

@override
State<HomeScreen> createState() => _HomeScreenState();
}

class _HomeScreenState extends State<HomeScreen> {
bool slowAnimation = false;

@override
void initState() {
super.initState();
}

@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: AppColors.white,
body: SafeArea(
child: SingleChildScrollView(
child: Column(
children: [
Padding(
padding: const EdgeInsets.only(top: 20.0),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
CircularButton(iconData: Icons.menu_rounded),
Expanded(
child: Text(
"MemeTastic",
style: Theme.of(context).textTheme.headline6,
textAlign: TextAlign.center,
)),
CircularButton(
iconData: slowAnimation ? MdiIcons.speedometerSlow : MdiIcons.speedometer,
onPressed: () {
timeDilation = slowAnimation ? 1.0 : 8.0;
setState(() {
slowAnimation = !slowAnimation;
});
},
),
],
),
),
Padding(
padding: const EdgeInsets.symmetric(vertical: 40.0),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Column(
children: [
Image.asset('assets/home_meme_1.png'),
Image.asset('assets/home_meme_2.png'),
],
),
Expanded(child: Image.asset('assets/home_meme_3.png')),
Column(
children: [
Image.asset('assets/home_meme_4.png'),
Image.asset('assets/home_meme_5.png'),
],
),
],
),
),
Container(
padding: EdgeInsets.symmetric(horizontal: 50),
child: Column(
children: [
Text(
"Create a meme",
style: Theme.of(context)
.textTheme
.headline4!
.copyWith(fontWeight: FontWeight.bold),
),
SizedBox(height: 12),
Text("Select an image, add a caption, and share your creation with the world",
textAlign: TextAlign.center, style: Theme.of(context).textTheme.subtitle1),
SizedBox(height: 24),
PrimaryButton(
text: "Generate",
colorName: AppColorNames.blue,
onPressed: () {
widget.showScrollableBottomSheet(context);
},
),
],
),
)
],
),
),
),
);
}
}

This file was deleted.

Loading

0 comments on commit fe0d291

Please sign in to comment.