Pass Slip and Leave approval/rejection push notifications

This commit is contained in:
2026-03-15 22:36:33 +08:00
parent 6fd3b66251
commit 885b543fb5
5 changed files with 421 additions and 10 deletions
+48 -4
View File
@@ -836,11 +836,55 @@ class _AppUpdateScreenState extends ConsumerState<AppUpdateScreen> {
),
const SizedBox(height: 12),
],
if (_error != null)
Text(
_error!,
style: const TextStyle(color: Colors.red),
if (_error != null) ...[
Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
const Icon(Icons.error_outline, color: Colors.red),
const SizedBox(width: 8),
Expanded(
child: Text(
_error!,
style: const TextStyle(color: Colors.red),
),
),
],
),
const SizedBox(height: 12),
Row(
children: [
OutlinedButton(
onPressed: _isUploading
? null
: () {
setState(() {
_error = null;
});
_submit();
},
child: const Text('Retry'),
),
const SizedBox(width: 8),
TextButton(
onPressed: _isUploading
? null
: () {
setState(() {
_error = null;
_apkBytes = null;
_apkName = null;
_progress = null;
_realProgress = 0;
_eta = null;
_logs.clear();
});
},
child: const Text('Reset'),
),
],
),
const SizedBox(height: 12),
],
ElevatedButton(
onPressed: _isUploading ? null : _submit,
child: _isUploading