forked from ulusoyca/Flutter-ShareWhatYouKnow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
841 additions
and
572 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 34 additions & 3 deletions
37
004-multi-page-scrollable-bottomsheet/multi_page_scrollable_bottom_sheet/ios/Podfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
21 changes: 20 additions & 1 deletion
21
004-multi-page-scrollable-bottomsheet/multi_page_scrollable_bottom_sheet/ios/Podfile.lock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
111 changes: 111 additions & 0 deletions
111
...multi-page-scrollable-bottomsheet/multi_page_scrollable_bottom_sheet/lib/home_screen.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
}, | ||
), | ||
], | ||
), | ||
) | ||
], | ||
), | ||
), | ||
), | ||
); | ||
} | ||
} |
125 changes: 0 additions & 125 deletions
125
004-multi-page-scrollable-bottomsheet/multi_page_scrollable_bottom_sheet/lib/main.dart
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.