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:tutorial/src/preferences/mainPreferences.dart'; | |
| class MainPreferencesPage extends StatefulWidget { | |
| MainPreferencesPage({Key key}) : super(key: key); | |
| @override | |
| _MainPreferencesPageState createState() => _MainPreferencesPageState(); | |
| } |
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
| void main() async { | |
| final prefs = MainPreferences(); | |
| await prefs.initPrefs(); | |
| runApp(MyApp()); | |
| } |
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
| dependencies: | |
| flutter_launcher_icons: "^0.8.0" | |
| flutter_icons: | |
| android: "launcher_icon" | |
| ios: true | |
| image_path: "assets/img/icon.png" | |
| adaptive_icon_background: "assets/img/icon.png" | |
| flutter: |
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
| flutter: | |
| assets: | |
| - assets/json/ |
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'; | |
| class ModalNameModal { | |
| mainBottomSheet(BuildContext context) { | |
| showModalBottomSheet( | |
| context: context, | |
| builder: (BuildContext context) { | |
| return Container( | |
| height: 500.0, | |
| child: Center( |
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'; | |
| class ModalNameModal { | |
| final String title; | |
| ModalNameModal({@required this.title}); | |
| mainBottomSheet(BuildContext context) { | |
| showModalBottomSheet( | |
| context: context, |
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
| ListTile( | |
| leading: Icon(Icons.arrow_left), | |
| trailing: Icon(Icons.arrow_right), | |
| ); |
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
| ListTile( | |
| title: Text('Title'), | |
| subtitle: Text('Subtitle'), | |
| ); |
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
| ListTile( | |
| enabled: true, | |
| onLongPress: () => {}, | |
| onTap: () => {}, | |
| ); |
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
| Column( | |
| crossAxisAlignment: CrossAxisAlignment.start, | |
| crossAxisAlignment: CrossAxisAlignment.baseline, | |
| crossAxisAlignment: CrossAxisAlignment.center, | |
| crossAxisAlignment: CrossAxisAlignment.stretch, | |
| crossAxisAlignment: CrossAxisAlignment.end, | |
| children: [ | |
| Container(height: 100, color: Colors.lightGreen), | |
| Container(height: 100, color: Colors.green), |