main.dart 915 B

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