Skip to content

Commit

Permalink
Optional field indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
yekta committed Mar 5, 2024
1 parent 087c269 commit e6253f6
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 10 deletions.
10 changes: 10 additions & 0 deletions lib/localization.dart
Original file line number Diff line number Diff line change
Expand Up @@ -908,6 +908,16 @@ class AppLocalization {
name: 'deleteImportedAdHocAccountDialogParagraph');
}

String get optionalFieldIndicator {
return Intl.message("(Optional)",
desc: "Optional field indicator", name: 'optionalFieldIndicator');
}

String get accountIndexTitle {
return Intl.message("Account Index",
desc: "Account index title", name: 'accountIndexTitle');
}

String get adHocAccountImportedError {
return Intl.message("Failed to import account",
desc: "Account imported error", name: 'adHocAccountImportedError');
Expand Down
37 changes: 27 additions & 10 deletions lib/ui/accounts/import_external_account_sheet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -525,17 +525,34 @@ class _ImportExternalAccountSheetState
right: smallScreen(context) ? 24 : 32,
top: 12),
alignment: Alignment.centerLeft,
child: AutoSizeText(
"Account Index",
style: TextStyle(
color: StateContainer.of(context).curTheme.text,
fontSize: 24.0,
fontFamily: 'NunitoSans',
fontWeight: FontWeight.w700,
child: RichText(
textAlign: TextAlign.start,
text: TextSpan(
children: [
TextSpan(
text:
AppLocalization.of(context).accountIndexTitle,
style: TextStyle(
color: StateContainer.of(context).curTheme.text,
fontSize: 24.0,
fontFamily: 'NunitoSans',
fontWeight: FontWeight.w700,
),
),
TextSpan(
text: " " +
AppLocalization.of(context)
.optionalFieldIndicator,
style: TextStyle(
color:
StateContainer.of(context).curTheme.text60,
fontSize: 16.0,
fontFamily: 'NunitoSans',
fontWeight: FontWeight.w600,
),
)
],
),
textAlign: TextAlign.left,
maxLines: null,
stepGranularity: 0.1,
),
),
// Explanation text for index
Expand Down

0 comments on commit e6253f6

Please sign in to comment.