Complete recipes page

This commit is contained in:
Alexander Laevens
2022-11-27 20:29:39 -07:00
parent 373eabe002
commit 9b1fc4e0e2
71 changed files with 806 additions and 251 deletions

View File

@@ -16,6 +16,12 @@ class _InviteHomegroupDialogState extends State<InviteHomegroupDialog> {
ListViewState _listState = ListViewState.inactive;
List<int> selectedIDs = [];
@override
void dispose() {
_searchController.dispose();
super.dispose();
}
@override
Widget build(BuildContext context) {
return Card(

View File

@@ -32,20 +32,17 @@ class ProfileCard extends StatelessWidget {
mainAxisSize: MainAxisSize.max,
children: [
CircleAvatar(
backgroundColor: Theme.of(context).colorScheme.primary,
backgroundColor: Colors.black,
radius: 42,
child: CircleAvatar(
radius: 40,
backgroundImage: userInfo.imageUrl != null
? NetworkImage(userInfo.imageUrl!)
: Image(
: const Image(
image: Svg('assets/images/person.svg',
color: Theme.of(context)
.colorScheme
.onPrimaryContainer),
color: Colors.black),
).image,
backgroundColor:
Theme.of(context).colorScheme.primaryContainer,
backgroundColor: Colors.white,
// https://github.com/flutter/flutter/issues/42901#issuecomment-708050484
child: Material(
shape: const CircleBorder(),

View File

@@ -16,16 +16,14 @@ class SmallUserChip extends StatelessWidget {
children: [
CircleAvatar(
radius: baseRadius,
backgroundColor: Theme.of(context).colorScheme.primary,
backgroundColor: Colors.black,
child: CircleAvatar(
radius: baseRadius - 2,
backgroundColor: Theme.of(context).colorScheme.primaryContainer,
backgroundColor: Colors.white,
backgroundImage: user.imageUrl != null
? NetworkImage(user.imageUrl!)
: Image(
image: Svg('assets/images/person.svg',
color:
Theme.of(context).colorScheme.onPrimaryContainer),
: const Image(
image: Svg('assets/images/person.svg', color: Colors.black),
).image,
),
),