AppLockTime constructor
const
AppLockTime({
- Key? key,
- required Widget child,
- required String lockDate,
- required String password,
- required String titleApp,
- bool isEnabled = true,
- String titleText = "App Locked",
- String passwordHintText = "Enter Password",
- String confirmButtonText = "Confirm",
- String incorrectPasswordText = "❌ كلمة المرور غير صحيحة!",
- Color backgroundColor = Colors.white,
- Color textColor = Colors.black,
- Color buttonColor = Colors.blue,
- Color fieldBorderColor = Colors.grey,
- Color errorTextColor = Colors.red,
- double buttonWidth = 150,
- 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);