add safearea in useful places

This commit is contained in:
krawieck 2021-01-24 22:59:20 +01:00
parent 208a4ac1ae
commit 6c1049b5ee
3 changed files with 6 additions and 3 deletions

View File

@ -396,7 +396,7 @@ class _AboutTab extends HookWidget {
title: const Center(child: Text('Modlog')),
onTap: goToModLog,
),
const SizedBox(height: 20),
const SafeArea(child: SizedBox.shrink()),
],
),
),

View File

@ -430,6 +430,7 @@ class _ManageAccount extends HookWidget {
),
child: const Text('DELETE ACCOUNT'),
),
const SafeArea(child: SizedBox.shrink()),
],
);
}

View File

@ -82,7 +82,7 @@ class InfiniteScroll<T> extends HookWidget {
if (i == data.value.length) {
// if there are no more, skip
if (!hasMore.current) {
return const SizedBox.shrink();
return const SafeArea(child: SizedBox.shrink());
}
// if it's already fetching more, skip
@ -98,7 +98,9 @@ class InfiniteScroll<T> extends HookWidget {
}).whenComplete(() => isFetching.current = false);
}
return loadingWidget;
return SafeArea(
child: loadingWidget,
);
}
// not last element, render list item