Feat: add pages and navigation between them; random mass
This commit is contained in:
@ -1,36 +1,23 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:fitneschi/pages/home.dart';
|
||||
import 'package:fitneschi/pages/gain_room.dart';
|
||||
import 'package:fitneschi/pages/lose_room.dart';
|
||||
|
||||
void main(){
|
||||
runApp(TheApp());
|
||||
// runApp(
|
||||
// MaterialApp(
|
||||
// title: "title",
|
||||
// home: TheApp(),
|
||||
// ),
|
||||
// );
|
||||
}
|
||||
|
||||
class TheApp extends StatelessWidget {
|
||||
const TheApp({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return MaterialApp(
|
||||
// theme:,
|
||||
home: Scaffold(
|
||||
appBar: AppBar(
|
||||
backgroundColor: Colors.deepPurple,
|
||||
title: const Text("Tamagochi 2.0"),
|
||||
centerTitle: true,
|
||||
),
|
||||
body: Column(
|
||||
children: [
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Icon(Icons.scale),
|
||||
Text("Body Mass"),
|
||||
],
|
||||
),
|
||||
Text("Fat Pct"),
|
||||
Text("Daily Caloric Norm"),
|
||||
],
|
||||
),
|
||||
)
|
||||
home: Home(),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user