main.dart 672 B

1234567891011121314151617181920212223242526272829303132333435
  1. // Copyright 2021 The Flutter team. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. import 'package:flutter/material.dart';
  5. import 'myself/my_home.dart';
  6. void main() {
  7. runApp(
  8. const App(),
  9. );
  10. }
  11. class App extends StatefulWidget {
  12. const App({super.key});
  13. @override
  14. _AppState createState() => _AppState();
  15. }
  16. class _AppState extends State<App> {
  17. @override
  18. Widget build(BuildContext context) {
  19. return MaterialApp(
  20. title: 'Flutter Demo',
  21. theme: ThemeData(
  22. primarySwatch: Colors.blue
  23. ),
  24. home: MyHomePage(title: 'MyHomePage'),
  25. );
  26. }
  27. }