Pass Slip and Leave approval/rejection push notifications
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user