Created
April 28, 2017 10:23
-
-
Save rxlabz/e186ade15eeb0bcf2bc0cd9e97a72778 to your computer and use it in GitHub Desktop.
This file contains 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 MaterialApp(home:new Scaffold(body:new ConstDemoApp()))); | |
} | |
class ConstDemoApp extends StatefulWidget { | |
@override | |
_ConstDemoAppState createState() => new _ConstDemoAppState(); | |
} | |
class _ConstDemoAppState extends State<ConstDemoApp> { | |
@override | |
Widget build(BuildContext context) { | |
return new Container( child: const Text('foo')); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment