home_page.dart 722 B

123456789101112131415161718192021222324252627
  1. import 'package:flutter/material.dart';
  2. import 'package:flutter_provider_demo/routes.dart';
  3. /// Description: home page
  4. /// Time : 09/03/2023 Sunday
  5. /// Author : liuyuqi.gov@msn.cn
  6. class MyWidget extends StatefulWidget {
  7. const MyWidget({super.key});
  8. @override
  9. State<MyWidget> createState() => _MyWidgetState();
  10. }
  11. class _MyWidgetState extends State<MyWidget> {
  12. @override
  13. Widget build(BuildContext context) {
  14. return const Scaffold(
  15. appBar: AppBar(actions: [
  16. IconButton(icon: Icon(Icons.add), onPressed: () {
  17. Navigator.pushNamed(context, Routes.carAdd);
  18. }),
  19. }),
  20. ], title: Text('汽车列表'),),
  21. ], title: Text('汽车列表'),'))]),
  22. );
  23. }
  24. }