This file contains hidden or 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
| import 'package:flutter/cupertino.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/services.dart'; | |
| import 'package:multi_image_picker/multi_image_picker.dart'; | |
| import 'package:permission_handler/permission_handler.dart'; | |
| void main() { | |
| WidgetsFlutterBinding.ensureInitialized(); | |
| SystemChrome.setEnabledSystemUIOverlays([ |
This file contains hidden or 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
| import 'package:flutter/material.dart'; | |
| import 'package:todos/images.dart'; | |
| void main() => runApp(MyApp()); | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( | |
| title: 'Flutter Demo', |
This file contains hidden or 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
| import 'package:flutter/material.dart'; | |
| import 'package:flutter_mobx/flutter_mobx.dart'; | |
| import 'package:mobx/mobx.dart'; | |
| part 'main.g.dart'; | |
| void main() => runApp(MyApp()); | |
| class CounterStore = CounterBase with _$CounterStore; |
This file contains hidden or 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
| class _MyAppState extends State<MyApp> { | |
| final GlobalKey<NavigatorState> _navigatorKey = GlobalKey(); | |
| @override | |
| Widget build(BuildContext context) { | |
| return BlocProvider<NavigatorBloc>( | |
| bloc: NavigatorBloc(navigatorKey: _navigatorKey), | |
| child: MaterialApp( | |
| navigatorKey: _navigatorKey, |
This file contains hidden or 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
| if (state is PhoneLoginCodeSent) { | |
| // code no navigate | |
| SchedulerBinding.instance.addPostFrameCallback((_) { | |
| Navigator.of(context).push(...); | |
| }); | |
| } |
This file contains hidden or 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
| import 'package:flutter/material.dart'; | |
| void main() => runApp(MyApp()); | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( | |
| title: 'Flutter Demo', | |
| theme: ThemeData( |
This file contains hidden or 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
| import 'package:flutter/material.dart'; | |
| void main() => runApp(SearchAppBar()); | |
| class SearchAppBar extends StatefulWidget { | |
| @override | |
| _SearchAppBarState createState() => new _SearchAppBarState(); | |
| } | |
| class _SearchAppBarState extends State<SearchAppBar> { |
This file contains hidden or 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
| bottomNavigationBar: TitledBottomNavigationBar( | |
| onTap: (index){ | |
| print("Selected Index: $index"); | |
| }, | |
| items: items, | |
| reverse: true, | |
| ) |
This file contains hidden or 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
| bottomNavigationBar: TitledBottomNavigationBar( | |
| onTap: (index){ | |
| print("Selected Index: $index"); | |
| }, | |
| items: [ | |
| TitledNavigationBarItem(title: 'Home', icon: Icons.home), | |
| TitledNavigationBarItem(title: 'Search', icon: Icons.search), | |
| TitledNavigationBarItem(title: 'Bag', icon: Icons.card_travel), | |
| TitledNavigationBarItem(title: 'Orders', icon: Icons.shopping_cart), | |
| TitledNavigationBarItem(title: 'Profile', icon: Icons.person_outline), |