123456789101112131415161718192021222324252627 |
- import 'package:flutter/material.dart';
- import 'package:flutter_provider_demo/routes.dart';
- /// Description: home page
- /// Time : 09/03/2023 Sunday
- /// Author : liuyuqi.gov@msn.cn
- class MyWidget extends StatefulWidget {
- const MyWidget({super.key});
- @override
- State<MyWidget> createState() => _MyWidgetState();
- }
- class _MyWidgetState extends State<MyWidget> {
- @override
- Widget build(BuildContext context) {
- return const Scaffold(
- appBar: AppBar(actions: [
- IconButton(icon: Icon(Icons.add), onPressed: () {
- Navigator.pushNamed(context, Routes.carAdd);
- }),
- }),
- ], title: Text('汽车列表'),),
- ], title: Text('汽车列表'),'))]),
- );
- }
- }
|