You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
686 B
27 lines
686 B
import 'package:flutter/material.dart';
|
|
import 'package:provider/provider.dart';
|
|
import 'package:smartfit_app_mobile/Modele/user.dart';
|
|
import 'package:smartfit_app_mobile/View/page_test.dart';
|
|
|
|
void main() {
|
|
runApp(ChangeNotifierProvider(
|
|
create: (context) => User("toto", "toto@email", "1234"),
|
|
child: const MyApp()));
|
|
}
|
|
|
|
class MyApp extends StatelessWidget {
|
|
const MyApp({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return MaterialApp(
|
|
title: 'Flutter Demo',
|
|
theme: ThemeData(
|
|
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
|
|
useMaterial3: true,
|
|
),
|
|
home: const TestPage(),
|
|
);
|
|
}
|
|
}
|