47 lines
1.4 KiB
Dart
47 lines
1.4 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:patient_manager/components/homeTile.dart';
|
|
|
|
class HomeTileGrid extends StatelessWidget {
|
|
final String userEmail;
|
|
const HomeTileGrid({super.key, required this.userEmail});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Center(
|
|
child: SizedBox(
|
|
width: 1000,
|
|
child: GridView.count(
|
|
padding: const EdgeInsets.all(20),
|
|
crossAxisSpacing: 10,
|
|
mainAxisSpacing: 10,
|
|
childAspectRatio: MediaQuery.of(context).size.width / 600,
|
|
crossAxisCount: 3,
|
|
children: [
|
|
HomeTile(
|
|
onTap: () {
|
|
Navigator.of(context)
|
|
.pushNamed('/patient-manager', arguments: userEmail);
|
|
},
|
|
tileName: "Patient Manager",
|
|
tileDescription:
|
|
"This is a digital solution for doctors Offices to manage their patients",
|
|
),
|
|
HomeTile(
|
|
onTap: () {},
|
|
tileName: "Test",
|
|
tileDescription:
|
|
"This is a digital solution for doctors Offices to manage their patients",
|
|
),
|
|
HomeTile(
|
|
onTap: () {},
|
|
tileName: "Test 1",
|
|
tileDescription:
|
|
"This is a digital solution for doctors Offices to manage their patients",
|
|
),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|