mainPage.dart 489 B

1234567891011121314151617181920212223
  1. import 'package:flutter/material.dart';
  2. class MainPage extends StatefulWidget {
  3. const MainPage({Key? key}) : super(key: key);
  4. @override
  5. State<MainPage> createState() => _MainPage();
  6. }
  7. class _MainPage extends State<MainPage> {
  8. @override
  9. Widget build(BuildContext context) {
  10. return Scaffold(
  11. floatingActionButton: FloatingActionButton(
  12. onPressed: () {
  13. },
  14. child: Icon(Icons.add),
  15. ),
  16. body: Center(child: Text("hello")),
  17. );
  18. }
  19. }