1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| class _home extends StatefulWidget { @override State<StatefulWidget> createState() { return _homeState(); } } class _homeState extends State<_home> { @override Widget build(BuildContext context) { // TODO: implement build return new Scaffold( appBar: new AppBar( title: Text("title"), centerTitle: true, ), body: new Center( child: new Container( height: 200.0, decoration: new BoxDecoration( gradient: const LinearGradient( colors: [Colors.amberAccent, Colors.lightBlue, Colors.red]), border: Border.all(width: 5.0,color: Colors.green)
), ), ) ); }
|