remove unnecessary safearea

This commit is contained in:
Fabian Freund
2024-06-16 21:15:50 +02:00
parent 33d6121053
commit 11e3b9c0a1
2 changed files with 334 additions and 342 deletions
@@ -25,8 +25,7 @@ class ChatArchiveListScreen extends HookConsumerWidget {
),
],
),
body: SafeArea(
child: Skeletonizer(
body: Skeletonizer(
enabled: chatsAsync.isLoading,
child: chatsAsync.when(
data: (chats) {
@@ -42,8 +41,7 @@ class ChatArchiveListScreen extends HookConsumerWidget {
: null,
onTap: () async {
await context.push(
ChatArchiveDetailRoute(fileName: chat.fileName)
.location,
ChatArchiveDetailRoute(fileName: chat.fileName).location,
);
},
);
@@ -66,7 +64,6 @@ class ChatArchiveListScreen extends HookConsumerWidget {
),
),
),
),
);
}
}
@@ -90,8 +90,7 @@ class SettingsScreen extends HookConsumerWidget {
return Scaffold(
appBar: AppBar(title: const Text('Settings')),
body: SafeArea(
child: Padding(
body: Padding(
padding: const EdgeInsets.all(8.0),
child: ListView(
children: [
@@ -285,8 +284,7 @@ class SettingsScreen extends HookConsumerWidget {
children: [
const Text('Last Sync'),
Text(
lastSync?.formatWithMinutePrecision() ??
'N/A',
lastSync?.formatWithMinutePrecision() ?? 'N/A',
),
],
),
@@ -339,8 +337,7 @@ class SettingsScreen extends HookConsumerWidget {
children: [
const Text('Last Sync'),
Text(
lastSync?.formatWithMinutePrecision() ??
'N/A',
lastSync?.formatWithMinutePrecision() ?? 'N/A',
),
],
),
@@ -393,8 +390,7 @@ class SettingsScreen extends HookConsumerWidget {
children: [
const Text('Last Sync'),
Text(
lastSync?.formatWithMinutePrecision() ??
'N/A',
lastSync?.formatWithMinutePrecision() ?? 'N/A',
),
],
),
@@ -417,7 +413,6 @@ class SettingsScreen extends HookConsumerWidget {
],
),
),
),
);
}
}