TestPage.dart 1.0 KB

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