feat: enhance kill house - submit request module with submit request functionality, including new models, repository updates, and UI integration
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:dio/dio.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
@@ -171,6 +171,25 @@ void defaultShowSuccessMessage(
|
||||
);
|
||||
}
|
||||
|
||||
void rawShowSuccessMessage(
|
||||
String message, {
|
||||
int durationInSeconds = 1500,
|
||||
VoidCallback? onDismissed,
|
||||
}) {
|
||||
Get.rawSnackbar(
|
||||
titleText: Text('موفقیت', style: AppFonts.yekan14.copyWith(color: Colors.white)),
|
||||
messageText: Text(message, style: AppFonts.yekan12.copyWith(color: Colors.white)),
|
||||
duration: Duration(milliseconds: durationInSeconds),
|
||||
snackPosition: SnackPosition.TOP,
|
||||
backgroundColor: Colors.green,
|
||||
snackbarStatus: (status) {
|
||||
if (status == SnackbarStatus.CLOSED) {
|
||||
onDismissed?.call();
|
||||
}
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
void defaultShowErrorMessage(String message) {
|
||||
Get.snackbar(
|
||||
'خطا',
|
||||
|
||||
Reference in New Issue
Block a user