add service for appwrite
This commit is contained in:
@@ -79,17 +79,19 @@ class HomePage extends GetView<HomeController> {
|
||||
? SliverGrid(
|
||||
gridDelegate:
|
||||
const SliverGridDelegateWithMaxCrossAxisExtent(
|
||||
maxCrossAxisExtent: 600,
|
||||
mainAxisSpacing: 16,
|
||||
crossAxisSpacing: 16,
|
||||
childAspectRatio: 0.95,
|
||||
),
|
||||
maxCrossAxisExtent: 600,
|
||||
mainAxisSpacing: 16,
|
||||
crossAxisSpacing: 16,
|
||||
childAspectRatio: 0.95,
|
||||
),
|
||||
delegate: SliverChildBuilderDelegate(
|
||||
(context, i) => PersonWeightCard(
|
||||
personName: names[i],
|
||||
entries: grouped[names[i]]!,
|
||||
onAddWeight: () =>
|
||||
homeCtrl.openAddDialog(names[i]),
|
||||
onAddWeight: () => homeCtrl.openAddDialog(
|
||||
names[i],
|
||||
grouped[names[i]]!.first.documentId,
|
||||
),
|
||||
onEditEntry: (entry) =>
|
||||
homeCtrl.openEditDialog(entry),
|
||||
),
|
||||
@@ -103,8 +105,10 @@ class HomePage extends GetView<HomeController> {
|
||||
child: PersonWeightCard(
|
||||
personName: names[i],
|
||||
entries: grouped[names[i]]!,
|
||||
onAddWeight: () =>
|
||||
homeCtrl.openAddDialog(names[i]),
|
||||
onAddWeight: () => homeCtrl.openAddDialog(
|
||||
names[i],
|
||||
grouped[names[i]]!.first.documentId,
|
||||
),
|
||||
onEditEntry: (entry) =>
|
||||
homeCtrl.openEditDialog(entry),
|
||||
),
|
||||
@@ -122,5 +126,3 @@ class HomePage extends GetView<HomeController> {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user