| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- import 'package:flutter/material.dart';
- import 'package:firebase_core/firebase_core.dart';
- import 'package:physigo/firebase_options.dart';
- import 'package:physigo/walking/walking_counter.dart';
- import 'package:physigo/walking/walking_permission.dart';
- void main() async {
- WidgetsFlutterBinding.ensureInitialized();
- await Firebase.initializeApp(
- options: DefaultFirebaseOptions.currentPlatform,
- );
- runApp(const PhysiGo());
- }
- class PhysiGo extends StatelessWidget {
- const PhysiGo({Key? key}) : super(key: key);
- @override
- Widget build(BuildContext context) {
- return MaterialApp(
- title: 'PhysiGo',
- theme: ThemeData(
- primarySwatch: Colors.blue,
- ),
- home: HomePage(),
- );
- }
- }
- class HomePage extends StatelessWidget {
- const HomePage({Key? key}) : super(key: key);
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- body: Center(
- child: TextButton(
- onPressed: () {
- Navigator.push(
- context,
- MaterialPageRoute(
- // Example on how to use NavigationPage
- builder: (context) => WalkingPermission(),
- ),
- );
- },
- child: const Text('Navigation')),
- ),
- );
- }
- }
|