main.dart 728 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import 'package:flutter/material.dart';
  2. import 'dart:async';
  3. import 'package:flutter/services.dart';
  4. void main() {
  5. runApp(const MyApp());
  6. }
  7. class MyApp extends StatefulWidget {
  8. const MyApp({Key? key}) : super(key: key);
  9. @override
  10. State<MyApp> createState() => _MyAppState();
  11. }
  12. class _MyAppState extends State<MyApp> {
  13. String _platformVersion = 'Unknown';
  14. @override
  15. void initState() {
  16. super.initState();
  17. }
  18. @override
  19. Widget build(BuildContext context) {
  20. return MaterialApp(
  21. home: Scaffold(
  22. appBar: AppBar(
  23. title: const Text('Plugin example app'),
  24. ),
  25. body: Center(
  26. child: Text('Running on: $_platformVersion\n'),
  27. ),
  28. ),
  29. );
  30. }
  31. }