Created
August 24, 2018 18:25
-
-
Save peekpt/e696bedf03bbb134297d4d87b10d64ab to your computer and use it in GitHub Desktop.
Revisions
-
peekpt created this gist
Aug 24, 2018 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,36 @@ import 'package:flutter/material.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( debugShowCheckedModeBanner: false, title: 'App Name', theme: ThemeData( primarySwatch: Colors.purple, ), home: RootPage(title: 'Root Title'), ); } } class RootPage extends StatefulWidget { RootPage({Key key, this.title}) : super(key: key); final String title; @override _RootPageState createState() => _RootPageState(); } class _RootPageState extends State<RootPage> { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text(widget.title), ), body: Container(), ); } }