ML-67 ScaffoldMessenger Null check operator used on a null value (#68)

This commit is contained in:
Vadim 2023-05-10 17:05:27 +02:00 committed by GitHub
parent f68aea5133
commit 19a788adcb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,27 +12,29 @@ class SettingsScreen extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return SliverScreen( return ScaffoldMessenger(
title: S.of(context).settings, child: SliverScreen(
appBarActions: [ title: S.of(context).settings,
IconButton( appBarActions: [
onPressed: Navigator.of(context).pop, IconButton(
icon: const Icon(Icons.close), onPressed: Navigator.of(context).pop,
), icon: const Icon(Icons.close),
],
slivers: [
SliverList(
delegate: SliverChildListDelegate(
<Widget>[
const MeteringSettingsSection(),
const GeneralSettingsSection(),
const ThemeSettingsSection(),
const AboutSettingsSection(),
SizedBox(height: MediaQuery.of(context).padding.bottom),
],
), ),
), ],
], slivers: [
SliverList(
delegate: SliverChildListDelegate(
<Widget>[
const MeteringSettingsSection(),
const GeneralSettingsSection(),
const ThemeSettingsSection(),
const AboutSettingsSection(),
SizedBox(height: MediaQuery.of(context).padding.bottom),
],
),
),
],
),
); );
} }
} }