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
| return new FutureBuilder<SavedModel>( | |
| future: getDataFromSP(), | |
| builder: (context, snapshot) { | |
| if (snapshot.hasData) { | |
| SavedModel model = snapshot.data; | |
| return new Column( | |
| mainAxisAlignment: MainAxisAlignment.start, | |
| crossAxisAlignment: CrossAxisAlignment.stretch, | |
| children: <Widget>[ | |
| new Text('Vegetable Name: $model.vegetables'), |
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
| String route = screen1Route; | |
| Application.router.navigateTo( | |
| context, route, transition: TransitionType.nativeModal, replace: false); | |
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
| @override | |
| Widget build(BuildContext context) { | |
| return new MaterialApp( | |
| debugShowCheckedModeBanner: false, | |
| home: new Scaffold( | |
| appBar: new AppBar(primary: true, title: new Text('Flutter-Start')), | |
| body: new Container( | |
| child: new Center( | |
| child: new Column(children: <Widget>[],), | |
| ), |
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:fluro/fluro.dart'; | |
| class Application { | |
| static Router router; | |
| } |
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:fluro/fluro.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutterstart/view/FutureWidgetView.dart'; | |
| import 'package:flutterstart/view/LayoutWidgetView.dart'; | |
| import 'package:flutterstart/view/StateWidgetView.dart'; | |
| final String homeRoute = '/home'; | |
| final String stateRoute = '/state'; | |
| final String layoutRoute = '/layout'; |
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() => runApp(new MyApp()); | |
| class MyApp extends StatelessWidget { | |
| // This widget is the root of your application. | |
| @override | |
| Widget build(BuildContext context) { | |
| return new MaterialApp( | |
| title: 'Management App', | |
| theme: defaultTargetPlatform == TargetPlatform.iOS |
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/foundation.dart'; | |
| import 'package:flutter/material.dart'; | |
| @override | |
| Widget build(BuildContext context) { | |
| return new MaterialApp( | |
| debugShowCheckedModeBanner: false, | |
| home: new Scaffold( | |
| appBar: new AppBar(primary: true, title: new Text('Flutter-Start')), |
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 Themes { | |
| static const MaterialColor darkBlue = const MaterialColor( | |
| _bluePrimaryValue, | |
| const <int, Color>{ | |
| 50: const Color(0xFFECEFF1), | |
| 100: const Color(0xFFCFD8DC), | |
| 200: const Color(0xFFB0BEC5), | |
| 300: const Color(0xFF90A4AE), | |
| 400: const Color(0xFF78909C), | |
| 500: const Color(_bluePrimaryValue), |
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
| new Row( | |
| crossAxisAlignment: CrossAxisAlignment.end, | |
| mainAxisAlignment: MainAxisAlignment.spaceEvenly, | |
| children: <Widget>[ | |
| new Text('Row child No 1'), | |
| new Text('Row child No 2'), | |
| new Text('Row child No 3'), | |
| new Text('Row child No 4'), | |
| new Text('Row child No 5'), | |
| new Text('Row child No 6'), |
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
| new Column( | |
| crossAxisAlignment: CrossAxisAlignment.stretch, | |
| mainAxisSize: MainAxisSize.min, | |
| mainAxisAlignment: MainAxisAlignment.spaceEvenly, | |
| children: <Widget>[ | |
| new Text('Column child No 1'), | |
| new Text('Column child No 2'), | |
| new Text('Column child No 3'), | |
| new Text('Column child No 4'), | |
| new Text('Column child No 5'), |
NewerOlder