✨ About page
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
import 'package:easy_localization/easy_localization.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
import 'package:package_info_plus/package_info_plus.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:responsive_framework/responsive_framework.dart';
|
||||
import 'package:styled_widget/styled_widget.dart';
|
||||
@ -48,9 +49,14 @@ class _AppNavigationDrawerState extends State<AppNavigationDrawer> {
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text('Solar Network').bold(),
|
||||
Text('Canary Preview 2.0α')
|
||||
.fontSize(12)
|
||||
.textColor(Theme.of(context).colorScheme.onSurface.withOpacity(0.5)),
|
||||
FutureBuilder<String>(
|
||||
future: PackageInfo.fromPlatform().then((value) => 'Stable ${value.version}+${value.buildNumber}'),
|
||||
builder: (context, snapshot) {
|
||||
return Text(!snapshot.hasData ? 'Stable 2.0' : snapshot.data!)
|
||||
.fontSize(12)
|
||||
.textColor(Theme.of(context).colorScheme.onSurface.withOpacity(0.5));
|
||||
},
|
||||
),
|
||||
],
|
||||
).padding(
|
||||
horizontal: 32,
|
||||
|
Reference in New Issue
Block a user