main.dart 863 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import 'package:flutter/material.dart';
  2. import 'package:firebase_core/firebase_core.dart';
  3. import 'package:physigo/firebase_options.dart';
  4. void main() async {
  5. WidgetsFlutterBinding.ensureInitialized();
  6. await Firebase.initializeApp(
  7. options: DefaultFirebaseOptions.currentPlatform,
  8. );
  9. runApp(const PhysiGo());
  10. }
  11. class PhysiGo extends StatelessWidget {
  12. const PhysiGo({Key? key}) : super(key: key);
  13. @override
  14. Widget build(BuildContext context) {
  15. return MaterialApp(
  16. title: 'PhysiGo',
  17. theme: ThemeData(
  18. primarySwatch: Colors.blue,
  19. ),
  20. home: const HomePage(),
  21. );
  22. }
  23. }
  24. class HomePage extends StatelessWidget {
  25. const HomePage({Key? key}) : super(key: key);
  26. @override
  27. Widget build(BuildContext context) {
  28. return const Scaffold(
  29. body: Center(
  30. child: Text("Home"),
  31. ),
  32. );
  33. }
  34. }