Removed double information

This commit is contained in:
2025-07-09 15:21:46 +02:00
parent 7fa95f4bca
commit 2d34ebf35b

View File

@@ -141,44 +141,28 @@ class _SettingsViewState extends State<SettingsView> {
bottom: 30, bottom: 30,
left: 0, left: 0,
right: 0, right: 0,
child: Column( child: Center(
children: [ child: FutureBuilder<PackageInfo>(
Center( future: _getPackageInfo(),
child: Text(AppLocalizations.of(context).error_found), builder: (context, snapshot) {
), if (snapshot.hasData) {
Padding( return Text(
padding: const EdgeInsets.fromLTRB(0, 0, 0, 30), '${Globals.appDevPhase} ${snapshot.data!.version} '
child: Center( '(${AppLocalizations.of(context).build} ${snapshot.data!.buildNumber})',
child: CupertinoButton( textAlign: TextAlign.center,
onPressed: () => launchUrl(Uri.parse( );
'https://github.com/flixcoo/Cabo-Counter/issues')), } else if (snapshot.hasError) {
child: Text(AppLocalizations.of(context).create_issue), return Text(
), '${AppLocalizations.of(context).app_version} -.-.- (${AppLocalizations.of(context).build} -)',
), textAlign: TextAlign.center,
), );
FutureBuilder<PackageInfo>( }
future: _getPackageInfo(), return Text(
builder: (context, snapshot) { AppLocalizations.of(context).load_version,
if (snapshot.hasData) { textAlign: TextAlign.center,
return Text( );
'${Globals.appDevPhase} ${snapshot.data!.version} ' },
'(${AppLocalizations.of(context).build} ${snapshot.data!.buildNumber})', ))),
textAlign: TextAlign.center,
);
} else if (snapshot.hasError) {
return Text(
'${AppLocalizations.of(context).app_version} -.-.- (${AppLocalizations.of(context).build} -)',
textAlign: TextAlign.center,
);
}
return Text(
AppLocalizations.of(context).load_version,
textAlign: TextAlign.center,
);
},
)
],
)),
], ],
)), )),
); );