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 'dart:ui'; | |
import 'package:flutter/cupertino.dart'; | |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { |
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:meta/meta.dart'; | |
const List<TabItem> TabItems = const <TabItem>[ | |
const TabItem(title: 'Home', icon: Icons.home), | |
const TabItem(title: 'Gallery', icon: Icons.image), | |
const TabItem(title: 'Settings', icon: Icons.settings) | |
]; | |
class MyApp extends StatefulWidget { |
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(new MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return new MaterialApp( | |
title: 'Flutter Demo', | |
theme: new 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
class FadeRoute<T> extends MaterialPageRoute<T> { | |
final bool fadeInitialRoute; | |
FadeRoute({ builder, settings, maintainState, fullscreenDialog, this.fadeInitialRoute = true}) | |
: super(builder: builder, settings: settings, maintainState: maintainState, fullscreenDialog: fullscreenDialog); | |
@override | |
bool get opaque => false; | |
@override |
NewerOlder