Update About dialog

This commit is contained in:
Foti Dim
2026-02-11 17:20:21 +01:00
parent 3f4abdc5cd
commit 6ab2ed82ea
+21 -15
View File
@@ -134,7 +134,16 @@ class _AppDrawerState extends State<AppDrawer> {
),
FutureBuilder(
future: PackageInfo.fromPlatform(),
builder: (_, snapshot) => AboutListTile(
builder: (_, snapshot) {
final theme = Theme.of(context);
final bodyStyle = theme.textTheme.bodyMedium?.copyWith(
color: theme.colorScheme.onSurface,
) ?? TextStyle(color: theme.colorScheme.onSurface);
final linkStyle = bodyStyle.copyWith(
color: theme.colorScheme.primary,
decoration: TextDecoration.underline,
);
return AboutListTile(
icon: const Icon(Icons.info_outline),
applicationIcon:
Image.asset('assets/icon.png', width: 40, height: 40),
@@ -147,21 +156,19 @@ class _AppDrawerState extends State<AppDrawer> {
RichText(
textAlign: TextAlign.justify,
text: TextSpan(
style: bodyStyle,
children: [
TextSpan(text: "Universal BLE is "),
const TextSpan(text: "Universal BLE is "),
TextSpan(
text: 'open source',
style: const TextStyle(
color: Colors.blue,
decoration: TextDecoration.underline,
),
style: linkStyle,
recognizer: TapGestureRecognizer()
..onTap = () {
launchUrl(Uri.parse(
"https://github.com/Navideck/universal_ble"));
"https://github.com/Navideck/Universal-BLE"));
},
),
TextSpan(text: "."),
const TextSpan(text: "."),
],
),
),
@@ -169,24 +176,23 @@ class _AppDrawerState extends State<AppDrawer> {
RichText(
textAlign: TextAlign.justify,
text: TextSpan(
style: bodyStyle,
children: [
TextSpan(text: "Need help with your project? "),
const TextSpan(text: "Need help with your project? "),
TextSpan(
text: 'Hire us',
style: const TextStyle(
color: Colors.blue,
decoration: TextDecoration.underline,
),
style: linkStyle,
recognizer: TapGestureRecognizer()
..onTap = () {
launchUrl(Uri.parse('mailto:info@navideck.com'));
launchUrl(Uri.parse('https://navideck.com/contact'));
},
),
],
),
),
],
),
);
},
),
],
),