Skip to content

Instantly share code, notes, and snippets.

@rxlabz
Created April 28, 2017 10:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rxlabz/e186ade15eeb0bcf2bc0cd9e97a72778 to your computer and use it in GitHub Desktop.
Save rxlabz/e186ade15eeb0bcf2bc0cd9e97a72778 to your computer and use it in GitHub Desktop.
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