TestPage.dart 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import 'package:flutter/material.dart';
  2. import 'package:flutter/cupertino.dart';
  3. class TestPage extends StatelessWidget {
  4. @override
  5. Widget build(BuildContext context) {
  6. return new MaterialApp(
  7. title: "Test",
  8. home: new Scaffold(
  9. appBar: new AppBar(
  10. title: new Text("Test"),
  11. ),
  12. body: new Center(
  13. child: new Column(
  14. mainAxisAlignment: MainAxisAlignment.center,
  15. children: [
  16. new Text("hello"),
  17. new Text("world")
  18. ],
  19. ),
  20. ),
  21. // body: new Container(
  22. // margin: const EdgeInsets.all(10.0),
  23. // width: 80.0,
  24. // height: 80.0,
  25. // decoration: new BoxDecoration(
  26. // shape: BoxShape.circle,
  27. // color: Colors.blue,
  28. // image: new DecorationImage(
  29. // image: new ExactAssetImage('./images/ic_test.png'),
  30. // fit: BoxFit.cover
  31. // ),
  32. // border: new Border.all(
  33. // color: Colors.white,
  34. // width: 2.0,
  35. // ),
  36. // ),
  37. // ),
  38. ),
  39. );
  40. }
  41. }