fix(admin): make action surfaces tappable and simplify version display
This commit is contained in:
@@ -2357,6 +2357,12 @@ class _AdminScreenState extends ConsumerState<AdminScreen> {
|
||||
scale: isFocused ? 1.01 : 1.0,
|
||||
duration: const Duration(milliseconds: 140),
|
||||
curve: Curves.easeOutCubic,
|
||||
child: Material(
|
||||
color: Colors.transparent,
|
||||
borderRadius: BorderRadius.circular(SacredRadii.lg),
|
||||
child: InkWell(
|
||||
onTap: onActivate,
|
||||
borderRadius: BorderRadius.circular(SacredRadii.lg),
|
||||
child: AnimatedContainer(
|
||||
duration: const Duration(milliseconds: 140),
|
||||
curve: Curves.easeOutCubic,
|
||||
@@ -2386,6 +2392,8 @@ class _AdminScreenState extends ConsumerState<AdminScreen> {
|
||||
child: builder?.call(isFocused) ?? child!,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
@@ -2420,6 +2428,12 @@ class _AdminScreenState extends ConsumerState<AdminScreen> {
|
||||
scale: isFocused ? 1.01 : 1.0,
|
||||
duration: const Duration(milliseconds: 140),
|
||||
curve: Curves.easeOutCubic,
|
||||
child: Material(
|
||||
color: Colors.transparent,
|
||||
borderRadius: BorderRadius.circular(SacredRadii.lg),
|
||||
child: InkWell(
|
||||
onTap: onActivate,
|
||||
borderRadius: BorderRadius.circular(SacredRadii.lg),
|
||||
child: AnimatedContainer(
|
||||
duration: const Duration(milliseconds: 140),
|
||||
curve: Curves.easeOutCubic,
|
||||
@@ -2447,6 +2461,8 @@ class _AdminScreenState extends ConsumerState<AdminScreen> {
|
||||
),
|
||||
child: builder != null ? builder(isFocused) : child!,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
@@ -2481,6 +2497,12 @@ class _AdminScreenState extends ConsumerState<AdminScreen> {
|
||||
scale: isFocused ? 1.01 : 1.0,
|
||||
duration: const Duration(milliseconds: 140),
|
||||
curve: Curves.easeOutCubic,
|
||||
child: Material(
|
||||
color: Colors.transparent,
|
||||
borderRadius: BorderRadius.circular(SacredRadii.lg),
|
||||
child: InkWell(
|
||||
onTap: onActivate,
|
||||
borderRadius: BorderRadius.circular(SacredRadii.lg),
|
||||
child: AnimatedContainer(
|
||||
duration: const Duration(milliseconds: 140),
|
||||
curve: Curves.easeOutCubic,
|
||||
@@ -2510,6 +2532,8 @@ class _AdminScreenState extends ConsumerState<AdminScreen> {
|
||||
child: builder?.call(isFocused) ?? child!,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
@@ -3822,7 +3846,7 @@ class _AdminScreenState extends ConsumerState<AdminScreen> {
|
||||
SizedBox(height: 20 * s),
|
||||
_buildStatusRow(
|
||||
'Versi Saat Ini',
|
||||
currentVersion?.displayLabel ?? 'Memuat versi...',
|
||||
currentVersion?.versionName ?? 'Memuat versi...',
|
||||
HugeIcons.strokeRoundedPackage,
|
||||
s,
|
||||
),
|
||||
@@ -3850,7 +3874,7 @@ class _AdminScreenState extends ConsumerState<AdminScreen> {
|
||||
SizedBox(height: 20 * s),
|
||||
_buildStatusRow(
|
||||
'Versi Remote',
|
||||
'${remote.latestVersion}+${remote.versionCode}',
|
||||
remote.latestVersion,
|
||||
HugeIcons.strokeRoundedPackage,
|
||||
s,
|
||||
),
|
||||
@@ -3985,7 +4009,10 @@ class _AdminScreenState extends ConsumerState<AdminScreen> {
|
||||
if (result.updateAvailable) {
|
||||
final remote = result.remote;
|
||||
if (remote == null) return 'Update tersedia';
|
||||
return 'Update tersedia ke ${remote.latestVersion}+${remote.versionCode}';
|
||||
if (remote.latestVersion == result.current.versionName) {
|
||||
return 'Update build tersedia untuk versi ${remote.latestVersion}';
|
||||
}
|
||||
return 'Update tersedia ke ${remote.latestVersion}';
|
||||
}
|
||||
return 'Versi ini sudah terbaru';
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
name: jamshalat_masjid_screen
|
||||
description: Smart Digital Prayer Clock for Android TV Box
|
||||
publish_to: 'none'
|
||||
version: 1.0.1+2
|
||||
version: 1.0.2+3
|
||||
|
||||
environment:
|
||||
sdk: '>=3.0.0 <4.0.0'
|
||||
|
||||
Reference in New Issue
Block a user