| {{description}} |
| |
| import 'package:flutter/material.dart'; |
| |
| void main() => runApp(new MyApp()); |
| |
| class MyApp extends StatelessWidget { |
| // This widget is the root of your application. |
| @override |
| Widget build(BuildContext context) { |
| return new MaterialApp( |
| title: 'Flutter Code Sample for {{id}}', |
| theme: new ThemeData( |
| primarySwatch: Colors.blue, |
| ), |
| home: new MyStatelessWidget(), |
| ); |
| } |
| } |
| |
| {{code-preamble}} |
| |
| class MyStatelessWidget extends StatelessWidget { |
| MyStatelessWidget({Key key}) : super(key: key); |
| |
| @override |
| Widget build(BuildContext context) { |
| return {{code}}; |
| } |
| } |