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 MaterialApp(
  7. title: "Test",
  8. home: Scaffold(
  9. appBar: AppBar(
  10. title: Text("Test"),
  11. ),
  12. body: Center(
  13. child: Column(
  14. mainAxisAlignment: MainAxisAlignment.center,
  15. children: [
  16. Text("hello"),
  17. Text("world")
  18. ],
  19. ),
  20. ),
  21. // body: Container(
  22. // margin: const EdgeInsets.all(10.0),
  23. // width: 80.0,
  24. // height: 80.0,
  25. // decoration: BoxDecoration(
  26. // shape: BoxShape.circle,
  27. // color: Colors.blue,
  28. // image: DecorationImage(
  29. // image: ExactAssetImage('./images/ic_test.png'),
  30. // fit: BoxFit.cover
  31. // ),
  32. // border: Border.all(
  33. // color: Colors.white,
  34. // width: 2.0,
  35. // ),
  36. // ),
  37. // ),
  38. ),
  39. );
  40. }
  41. }