Center the ‘Reports is not enabled’ message

This commit is contained in:
Hillel Coren 2023-12-18 16:41:57 +02:00
parent a4bc404b4d
commit b4a454ea11
2 changed files with 24 additions and 19 deletions

View File

@ -14,6 +14,7 @@ class HelpText extends StatelessWidget {
opacity: 0.8,
child: Text(
message!,
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 20,
color: Colors.grey,

View File

@ -434,10 +434,13 @@ class ReportsScreen extends StatelessWidget {
),
body: hideReports
? Center(
child: mt.Padding(
padding: const EdgeInsets.all(16),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
HelpText(localization.upgradeToViewReports),
SizedBox(height: 10),
AppButton(
label: localization.upgrade.toUpperCase(),
onPressed: () {
@ -454,6 +457,7 @@ class ReportsScreen extends StatelessWidget {
})
],
),
),
)
: ScrollableListView(
primary: true,