Add safe area to contacts screen

codemagic-setup
Hank Grabowski 2022-12-29 00:22:34 -05:00
rodzic 5328d9d170
commit b398f72e74
1 zmienionych plików z 30 dodań i 28 usunięć

Wyświetl plik

@ -48,38 +48,40 @@ class _ContactsScreenState extends State<ContactsScreen> {
itemCount: contacts.length);
}
return Scaffold(
body: RefreshIndicator(
onRefresh: () async {
await manager.updateAllContacts();
},
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Padding(
padding: const EdgeInsets.all(8.0),
child: TextField(
onChanged: (value) {
setState(() {
filterText = value.toLowerCase();
});
},
decoration: InputDecoration(
labelText: 'Filter By Name',
alignLabelWithHint: true,
border: OutlineInputBorder(
borderSide: BorderSide(
color: Theme.of(context).backgroundColor,
body: SafeArea(
child: RefreshIndicator(
onRefresh: () async {
await manager.updateAllContacts();
},
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Padding(
padding: const EdgeInsets.all(8.0),
child: TextField(
onChanged: (value) {
setState(() {
filterText = value.toLowerCase();
});
},
decoration: InputDecoration(
labelText: 'Filter By Name',
alignLabelWithHint: true,
border: OutlineInputBorder(
borderSide: BorderSide(
color: Theme.of(context).backgroundColor,
),
borderRadius: BorderRadius.circular(5.0),
),
borderRadius: BorderRadius.circular(5.0),
),
),
),
),
Expanded(
child: body,
),
],
Expanded(
child: body,
),
],
),
),
),
bottomNavigationBar: AppBottomNavBar(