AppLockTime constructor

const AppLockTime({
  1. Key? key,
  2. required Widget child,
  3. required String lockDate,
  4. required String password,
  5. required String titleApp,
  6. bool isEnabled = true,
  7. String titleText = "App Locked",
  8. String passwordHintText = "Enter Password",
  9. String confirmButtonText = "Confirm",
  10. String incorrectPasswordText = "❌ كلمة المرور غير صحيحة!",
  11. Color backgroundColor = Colors.white,
  12. Color textColor = Colors.black,
  13. Color buttonColor = Colors.blue,
  14. Color fieldBorderColor = Colors.grey,
  15. Color errorTextColor = Colors.red,
  16. double buttonWidth = 150,
  17. double buttonHeight = 50,
})

Implementation

const AppLockTime({
  Key? key,
  required this.child,
  required this.lockDate,
  required this.password,
  required this.titleApp, // جعله مطلوبًا
  this.isEnabled = true,
  this.titleText = "App Locked",
  this.passwordHintText = "Enter Password",
  this.confirmButtonText = "Confirm",
  this.incorrectPasswordText = "❌ كلمة المرور غير صحيحة!", // نص رسالة الخطأ
  this.backgroundColor = Colors.white,
  this.textColor = Colors.black,
  this.buttonColor = Colors.blue,
  this.fieldBorderColor = Colors.grey,
  this.errorTextColor = Colors.red, // لون رسالة الخطأ
  this.buttonWidth = 150,
  this.buttonHeight = 50,
}) : super(key: key);