|
|
|
|
@ -146,6 +146,10 @@ class _DashboardScreenForDependetState extends State<DashboardScreenForDependet>
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String _cleanDependentName(String name) {
|
|
|
|
|
return name.replaceAll(RegExp(r'\s*-\s*'), ' ').replaceAll(RegExp(r'\s+'), ' ').trim();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
void dispose() {
|
|
|
|
|
_debounceTimer?.cancel();
|
|
|
|
|
@ -518,14 +522,11 @@ class _DashboardScreenForDependetState extends State<DashboardScreenForDependet>
|
|
|
|
|
},
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: const EdgeInsets.all(3),
|
|
|
|
|
child: Image.asset(
|
|
|
|
|
'assets/icons/ic_add_dependents.png',
|
|
|
|
|
child: SvgPicture.asset(
|
|
|
|
|
'assets/icons/ic_dependents_top.svg',
|
|
|
|
|
width: 24,
|
|
|
|
|
height: 24,
|
|
|
|
|
color: const Color(0xFF1E293B),
|
|
|
|
|
errorBuilder:
|
|
|
|
|
(context, error, stackTrace) =>
|
|
|
|
|
SvgPicture.asset('assets/icons/ic_dependents_top.svg', width: 24, height: 24, colorFilter: const ColorFilter.mode(Color(0xFF1E293B), BlendMode.srcIn)),
|
|
|
|
|
colorFilter: const ColorFilter.mode(Color(0xFF1E293B), BlendMode.srcIn),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
@ -577,7 +578,7 @@ class _DashboardScreenForDependetState extends State<DashboardScreenForDependet>
|
|
|
|
|
// on the last-login screen, shown for dependent logins only.
|
|
|
|
|
if (ApiConsts.isDependetLogin && (AppState().dependentName ?? "").isNotEmpty) ...[
|
|
|
|
|
LocaleKeys.welcomeBack.tr().toText12(),
|
|
|
|
|
AppState().dependentName!.toText24(isBold: true),
|
|
|
|
|
_cleanDependentName(AppState().dependentName!).toText18(isBold: true),
|
|
|
|
|
const SizedBox(height: 16),
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
|