Center the ‘Reports is not enabled’ message
This commit is contained in:
parent
a4bc404b4d
commit
b4a454ea11
|
|
@ -14,6 +14,7 @@ class HelpText extends StatelessWidget {
|
||||||
opacity: 0.8,
|
opacity: 0.8,
|
||||||
child: Text(
|
child: Text(
|
||||||
message!,
|
message!,
|
||||||
|
textAlign: TextAlign.center,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 20,
|
fontSize: 20,
|
||||||
color: Colors.grey,
|
color: Colors.grey,
|
||||||
|
|
|
||||||
|
|
@ -434,10 +434,13 @@ class ReportsScreen extends StatelessWidget {
|
||||||
),
|
),
|
||||||
body: hideReports
|
body: hideReports
|
||||||
? Center(
|
? Center(
|
||||||
|
child: mt.Padding(
|
||||||
|
padding: const EdgeInsets.all(16),
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
HelpText(localization.upgradeToViewReports),
|
HelpText(localization.upgradeToViewReports),
|
||||||
|
SizedBox(height: 10),
|
||||||
AppButton(
|
AppButton(
|
||||||
label: localization.upgrade.toUpperCase(),
|
label: localization.upgrade.toUpperCase(),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
|
@ -454,6 +457,7 @@ class ReportsScreen extends StatelessWidget {
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
),
|
||||||
)
|
)
|
||||||
: ScrollableListView(
|
: ScrollableListView(
|
||||||
primary: true,
|
primary: true,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue