Build & Update frontend to start coding

This commit is contained in:
2024-03-24 11:37:28 +02:00
parent 54264d2c5a
commit 2242faef8a
40 changed files with 296 additions and 531 deletions

View File

@@ -1,125 +1,21 @@
import 'package:flutter/material.dart';
import 'package:patient_manager/router/routeGenerator.dart';
void main() {
runApp(const MyApp());
runApp(const MzanziInnovationHub());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
// This is the theme of your application.
//
// TRY THIS: Try running your application with "flutter run". You'll see
// the application has a purple toolbar. Then, without quitting the app,
// try changing the seedColor in the colorScheme below to Colors.green
// and then invoke "hot reload" (save your changes or press the "hot
// reload" button in a Flutter-supported IDE, or press "r" if you used
// the command line to start the app).
//
// Notice that the counter didn't reset back to zero; the application
// state is not lost during the reload. To reset the state, use hot
// restart instead.
//
// This works for code too, not just values: Most code changes can be
// tested with just a hot reload.
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: const MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key, required this.title});
// This widget is the home page of your application. It is stateful, meaning
// that it has a State object (defined below) that contains fields that affect
// how it looks.
// This class is the configuration for the state. It holds the values (in this
// case the title) provided by the parent (in this case the App widget) and
// used by the build method of the State. Fields in a Widget subclass are
// always marked "final".
final String title;
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
int _counter = 0;
void _incrementCounter() {
setState(() {
// This call to setState tells the Flutter framework that something has
// changed in this State, which causes it to rerun the build method below
// so that the display can reflect the updated values. If we changed
// _counter without calling setState(), then the build method would not be
// called again, and so nothing would appear to happen.
_counter++;
});
}
class MzanziInnovationHub extends StatelessWidget {
const MzanziInnovationHub({super.key});
@override
Widget build(BuildContext context) {
// This method is rerun every time setState is called, for instance as done
// by the _incrementCounter method above.
//
// The Flutter framework has been optimized to make rerunning build methods
// fast, so that you can just rebuild anything that needs updating rather
// than having to individually change instances of widgets.
return Scaffold(
appBar: AppBar(
// TRY THIS: Try changing the color here to a specific color (to
// Colors.amber, perhaps?) and trigger a hot reload to see the AppBar
// change color while the other colors stay the same.
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
// Here we take the value from the MyHomePage object that was created by
// the App.build method, and use it to set our appbar title.
title: Text(widget.title),
),
body: Center(
// Center is a layout widget. It takes a single child and positions it
// in the middle of the parent.
child: Column(
// Column is also a layout widget. It takes a list of children and
// arranges them vertically. By default, it sizes itself to fit its
// children horizontally, and tries to be as tall as its parent.
//
// Column has various properties to control how it sizes itself and
// how it positions its children. Here we use mainAxisAlignment to
// center the children vertically; the main axis here is the vertical
// axis because Columns are vertical (the cross axis would be
// horizontal).
//
// TRY THIS: Invoke "debug painting" (choose the "Toggle Debug Paint"
// action in the IDE, or press "p" in the console), to see the
// wireframe for each widget.
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
const Text(
'You have pushed the button this many times:',
),
Text(
'$_counter',
style: Theme.of(context).textTheme.headlineMedium,
),
],
),
),
floatingActionButton: FloatingActionButton(
onPressed: _incrementCounter,
tooltip: 'Increment',
child: const Icon(Icons.add),
), // This trailing comma makes auto-formatting nicer for build methods.
return const MaterialApp(
title: 'MyFlutterAp',
themeMode: ThemeMode.system,
debugShowCheckedModeBanner: false,
initialRoute: '/',
onGenerateRoute: RouteGenerator.generateRoute,
);
}
}

View File

@@ -0,0 +1,10 @@
import 'package:flutter/material.dart';
class Home extends StatelessWidget {
const Home({super.key});
@override
Widget build(BuildContext context) {
return const Text("Hello World");
}
}

View File

@@ -0,0 +1,23 @@
// ignore: file_names
import 'package:flutter/material.dart';
import 'package:patient_manager/pages/home.dart';
class RouteGenerator {
static Route<dynamic> generateRoute(RouteSettings settings) {
//final args = settings.arguments;
switch (settings.name) {
case '/':
return MaterialPageRoute(builder: (_) => const Home());
// case '/business':
// return MaterialPageRoute(builder: (_) => const Business());
// case '/businessList':
// return MaterialPageRoute(builder: (_) => const BusinessList());
// //case '/signIn':
// // return MaterialPageRoute(builder: (_) => SignIn());
// case '/auth':
// return MaterialPageRoute(builder: (_) => const AuthPage());
}
throw '';
}
}

View File

@@ -1,30 +0,0 @@
// This is a basic Flutter widget test.
//
// To perform an interaction with a widget in your test, use the WidgetTester
// utility in the flutter_test package. For example, you can send tap and scroll
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:patient_manager/main.dart';
void main() {
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
// Build our app and trigger a frame.
await tester.pumpWidget(const MyApp());
// Verify that our counter starts at 0.
expect(find.text('0'), findsOneWidget);
expect(find.text('1'), findsNothing);
// Tap the '+' icon and trigger a frame.
await tester.tap(find.byIcon(Icons.add));
await tester.pump();
// Verify that our counter has incremented.
expect(find.text('0'), findsNothing);
expect(find.text('1'), findsOneWidget);
});
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
database/binlog.000003 Normal file

Binary file not shown.

BIN
database/binlog.000004 Normal file

Binary file not shown.

BIN
database/binlog.000005 Normal file

Binary file not shown.

BIN
database/binlog.000006 Normal file

Binary file not shown.

BIN
database/binlog.000007 Normal file

Binary file not shown.

BIN
database/binlog.000008 Normal file

Binary file not shown.

BIN
database/binlog.000009 Normal file

Binary file not shown.

View File

@@ -1,386 +1,250 @@
4294967294,5
4294967278,132
4294967278,131
4294967278,130
4294967278,129
4294967278,128
4294967278,127
4294967278,126
4294967278,125
4294967278,124
4294967278,123
4294967278,122
4294967278,121
4294967278,120
4294967278,119
4294967278,118
4294967278,117
4294967278,116
4294967278,115
4294967278,114
4294967278,113
4294967278,112
4294967278,111
4294967278,110
4294967278,109
4294967278,108
4294967278,107
4294967278,106
4294967278,105
4294967278,104
4294967278,103
4294967278,102
4294967278,101
4294967278,100
4294967278,99
4294967278,98
4294967278,97
4294967278,96
4294967278,95
4294967278,94
4294967278,93
4294967278,92
4294967278,91
4294967278,90
4294967278,89
4294967278,87
4294967278,86
4294967278,85
4294967278,84
4294967278,83
4294967278,82
4294967278,81
4294967278,80
4294967278,79
4294967278,78
4294967278,77
4294967278,76
4294967278,75
4294967278,74
4294967278,73
4294967278,72
4294967278,71
4294967278,70
4294967278,69
4294967278,68
4294967278,67
4294967278,66
4294967278,65
4294967278,64
4294967278,63
4294967278,62
4294967278,61
4294967278,60
4294967278,59
4294967278,58
4294967278,57
4294967278,56
4294967278,55
4294967278,54
4294967278,53
4294967278,52
4294967278,51
4294967278,50
4294967278,49
4294967278,48
4294967278,47
4294967278,46
4294967278,45
4294967278,44
4294967278,43
4294967278,42
4294967278,41
4294967278,40
4294967278,39
4294967278,38
4294967278,37
4294967278,36
4294967278,35
4294967278,34
4294967278,33
4294967278,32
4294967278,31
4294967278,30
4294967278,29
4294967278,28
4294967278,27
4294967278,26
4294967278,25
4294967278,24
4294967278,23
4294967278,275
4294967278,21
4294967278,20
4294967278,19
4294967278,18
4294967278,17
4294967278,16
4294967278,15
4294967278,14
4294967278,13
4294967278,12
4294967278,11
4294967278,10
4294967278,9
4294967278,8
4294967278,7
4294967278,6
4294967278,5
4294967278,4
4294967279,132
4294967279,131
4294967279,130
4294967279,129
4294967279,128
4294967279,127
4294967279,126
4294967279,125
4294967279,124
4294967279,123
4294967279,122
4294967279,121
4294967279,120
4294967279,119
4294967279,118
4294967279,117
4294967279,116
4294967279,115
4294967279,114
4294967279,113
4294967279,21
4294967279,20
4294967279,19
4294967279,18
4294967279,17
4294967279,16
4294967279,15
4294967279,14
4294967279,13
4294967279,12
4294967279,11
4294967279,10
4294967279,9
4294967279,8
4294967279,7
4294967279,6
4294967279,5
4294967279,4
0,5
4294967294,69
4294967278,136
4294967294,68
4294967294,1418
4294967294,89
4294967279,136
4294967278,135
4294967294,444
4294967294,103
4294967294,66
4294967294,388
4294967294,166
4294967294,168
4294967294,161
4294967294,165
4294967294,24
4294967294,113
4294967294,17
4294967294,42
4294967294,67
4294967294,99
4294967294,76
4294967294,36
4294967294,39
4294967294,41
4294967294,115
4294967294,43
4294967294,387
4294967294,51
4294967294,52
4294967294,112
4294967294,167
4294967294,162
4294967294,82
4294967294,92
4294967294,35
4294967294,441
4294967294,582
4294967294,442
4294967294,426
4294967294,427
4294967294,1056
4294967294,1055
4294967294,429
4294967294,600
4294967294,421
4294967278,287
4294967278,260
4294967278,0
4294967278,22
4294967294,425
4294967294,431
4294967279,22
4294967279,260
4294967294,1524
4294967279,552
4294967294,1523
4294967279,551
4294967294,1417
4294967294,1522
4294967279,550
4294967294,1521
4294967294,1520
4294967279,549
4294967294,1519
4294967279,548
4294967294,1518
4294967279,547
4294967294,1517
4294967294,1516
4294967279,546
4294967294,1515
4294967294,1416
4294967279,545
4294967294,1415
4294967294,1514
4294967279,544
4294967294,1513
4294967294,1512
4294967279,543
4294967294,1511
4294967279,542
4294967294,1510
4294967279,541
4294967294,1509
4294967294,1508
4294967279,540
4294967294,1507
4294967279,539
4294967294,1506
4294967294,1505
4294967279,538
4294967294,1504
4294967294,1414
4294967279,537
4294967294,1503
4294967294,1502
4294967279,536
4294967294,1501
4294967279,535
4294967294,1500
4294967279,534
4294967294,1499
4294967294,1498
4294967279,533
4294967294,1497
4294967279,532
4294967294,1496
4294967294,1495
4294967279,531
4294967294,1494
4294967279,530
4294967294,1493
4294967294,1413
4294967279,529
4294967294,1492
4294967294,1491
4294967279,528
4294967294,1490
4294967294,1412
4294967279,527
4294967294,1489
4294967294,1488
4294967279,526
4294967294,1487
4294967279,525
4294967294,1486
4294967279,524
4294967294,1485
4294967294,1484
4294967279,523
4294967294,1483
4294967279,522
4294967294,1482
4294967294,1481
4294967279,521
4294967294,1411
4294967294,1480
4294967279,520
4294967294,1479
4294967294,1478
4294967279,519
4294967294,1477
4294967279,518
4294967294,1476
4294967294,1410
4294967279,517
4294967294,1475
4294967279,516
4294967294,1474
4294967279,515
4294967294,1473
4294967294,0
4294967294,1472
4294967279,514
4294967294,1407
4294967294,1409
4294967279,513
4294967294,1406
4294967279,512
4294967294,1405
4294967294,1404
4294967279,511
4294967294,1403
4294967279,510
4294967294,1402
4294967294,1401
4294967279,509
4294967294,1400
4294967279,508
4294967294,1399
4294967279,507
4294967294,1398
4294967294,1397
4294967279,506
4294967279,133
4294967294,1408
4294967294,1396
4294967279,505
4294967294,1395
4294967294,1394
4294967279,504
4294967294,1393
4294967279,503
4294967294,1392
4294967279,502
4294967294,1391
4294967294,1390
4294967279,501
4294967294,1389
4294967279,500
4294967294,1388
4294967294,1387
4294967279,499
4294967294,1386
4294967279,498
4294967294,1385
4294967279,497
4294967294,1384
4294967294,1383
4294967279,496
4294967294,1382
4294967279,495
4294967294,1381
4294967294,1380
4294967279,494
4294967294,1379
4294967279,493
4294967294,1378
4294967279,492
4294967294,1377
4294967294,1376
4294967279,491
4294967294,1375
4294967279,490
4294967294,1374
4294967279,489
4294967294,1373
4294967294,472
4294967278,292
4294967293,131
4294967293,130
4294967293,129
4294967293,128
4294967293,127
4294967293,126
4294967293,125
4294967293,124
4294967293,123
4294967293,122
4294967293,121
4294967293,120
4294967293,119
4294967293,118
4294967293,117
4294967293,116
4294967293,115
4294967293,114
4294967293,113
4294967293,112
4294967293,111
4294967293,110
4294967293,109
4294967293,108
4294967293,107
4294967293,106
4294967293,105
4294967293,104
4294967293,103
4294967293,102
4294967293,101
4294967293,100
4294967293,99
4294967293,98
4294967293,97
4294967293,96
4294967293,95
4294967293,94
4294967293,93
4294967293,92
4294967293,91
4294967293,90
4294967293,89
4294967293,88
4294967293,87
4294967293,86
4294967293,85
4294967293,84
4294967293,83
4294967293,82
4294967293,81
4294967293,80
4294967293,79
4294967293,78
4294967293,77
4294967293,76
4294967293,75
4294967293,74
4294967293,73
4294967293,72
4294967293,71
4294967293,70
4294967293,69
4294967293,68
4294967293,67
4294967293,66
4294967293,65
4294967293,64
4294967293,63
4294967293,62
4294967293,61
4294967293,60
4294967293,59
4294967293,58
4294967293,57
4294967293,56
4294967293,55
4294967293,54
4294967293,53
4294967293,52
4294967293,51
4294967293,50
4294967293,49
4294967293,48
4294967293,47
4294967293,46
4294967293,45
4294967293,44
4294967293,43
4294967293,42
4294967293,41
4294967293,40
4294967293,39
4294967293,38
4294967293,37
4294967293,36
4294967293,35
4294967293,34
4294967293,33
4294967293,32
4294967293,31
4294967293,30
4294967293,29
4294967293,28
4294967293,27
4294967293,26
4294967293,25
4294967293,24
4294967293,23
4294967293,22
4294967293,21
4294967293,20
4294967293,19
4294967293,18
4294967293,17
4294967293,16
4294967293,15
4294967293,14
4294967293,13
4294967293,12
4294967293,11
4294967293,10
4294967293,9
4294967293,8
4294967293,7
4294967293,6
4294967293,5
4294967293,4
4294967293,3
4294967293,2
4243767290,0
4243767289,0
4243767288,0
4243767287,0
4243767286,0
4243767285,0
4243767284,0
4243767283,0
4243767282,0
4243767281,0
4294967293,0
4294967279,29
4294967279,143
4294967279,144
4294967279,30
4294967279,145
4294967279,31
4294967279,32
4294967279,146
4294967279,33
4294967279,147
4294967279,148
4294967279,34
4294967279,149
4294967279,35
4294967279,36
4294967279,150
4294967279,37
4294967279,151
4294967279,152
4294967279,38
4294967279,153
4294967279,39
4294967279,40
4294967279,154
4294967279,41
4294967279,155
4294967279,156
4294967279,42
4294967279,158
4294967279,43
4294967279,157
4294967279,44
4294967279,159
4294967279,160
4294967279,45
4294967279,161
4294967279,46
4294967279,47
4294967279,162
4294967279,48
4294967279,163
4294967279,164
4294967279,49
4294967279,50
4294967279,165
4294967279,51
4294967279,166
4294967279,52
4294967279,167
4294967279,168
4294967279,53
4294967279,169
4294967279,54
4294967279,55
4294967279,170
4294967279,56
4294967279,171
4294967279,172
4294967279,57
4294967279,173
4294967279,58
4294967279,59
4294967279,175
4294967279,60
4294967279,176
4294967279,177
4294967279,61
4294967279,178
4294967279,62
4294967279,63
4294967279,179
4294967279,64
4294967279,180
4294967279,181
4294967279,65
4294967279,182
4294967279,66
4294967279,67
4294967279,184
4294967279,183
4294967279,68
4294967279,185
4294967279,69
4294967279,186
4294967279,70
4294967279,71
4294967279,187
4294967279,72
4294967279,188
4294967279,189
4294967279,73
4294967279,190
4294967279,74
4294967279,75
4294967279,191
4294967279,76
4294967279,192
4294967279,193
4294967279,77
4294967279,194
4294967279,78
4294967279,79
4294967279,195
4294967279,80
4294967279,196
4294967279,197
4294967279,81

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -41,7 +41,9 @@ services:
build:
context: ./Frontend/patient_manager
ports:
- "8080:9000"
- "8080:9000"
# volumes:
# - ./Frontend/patient_manager:/app
minio:
container_name: MIH-minio