| // Flutter code sample for {{element}} |
| import 'package:flutter/material.dart'; |
| void main() => runApp(new MyApp()); |
| /// This Widget is the main application widget. |
| class MyApp extends StatelessWidget { |
| static const String _title = 'Flutter Code Sample'; |
| Widget build(BuildContext context) { |
| appBar: AppBar(title: const Text(_title)), |
| body: MyStatefulWidget(), |
| class MyStatefulWidget extends StatefulWidget { |
| MyStatefulWidget({Key key}) : super(key: key); |
| _MyStatefulWidgetState createState() => _MyStatefulWidgetState(); |
| class _MyStatefulWidgetState extends State<MyStatefulWidget> { |