Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[auth] Remove nesting for notes

vishnukvmd10d6e1833217
diff --git a/auth/lib/l10n/arb/app_en.arb b/auth/lib/l10n/arb/app_en.arb
index d9ce601607..50340de103 100644
--- a/auth/lib/l10n/arb/app_en.arb
+++ b/auth/lib/l10n/arb/app_en.arb
@@ -21,7 +21,6 @@
"codeSecretKeyHint": "Secret Key",
"secret": "Secret",
"all": "All",
- "advance": "Advance",
"notes": "Notes",
"notesLengthLimit": "Notes can be at most {count} characters long",
"@notesLengthLimit": {
diff --git a/auth/lib/onboarding/view/setup_enter_secret_key_page.dart b/auth/lib/onboarding/view/setup_enter_secret_key_page.dart
index 5ce7ec77a3..82ab039ad0 100644
--- a/auth/lib/onboarding/view/setup_enter_secret_key_page.dart
+++ b/auth/lib/onboarding/view/setup_enter_secret_key_page.dart
@@ -225,54 +225,32 @@ class _SetupEnterSecretKeyPageState extends State<SetupEnterSecretKeyPage> {
const SizedBox(height: 12),
Row(
children: [
+ FieldLabel(l10n.notes),
Expanded(
- child: Theme(
- data: Theme.of(context).copyWith(
- dividerColor: Colors
- .transparent, // Removes the default divider color
- ),
- child: ExpansionTile(
- title: Text(
- l10n.advance,
- style: getEnteTextTheme(context).bodyMuted,
- ),
- children: <Widget>[
- Row(
- children: [
- FieldLabel(l10n.notes),
- Expanded(
- child: TextFormField(
- // The validator receives the text that the user has entered.
- validator: (value) {
- if (value == null || value.isEmpty) {
- return "Please enter some text";
- }
- if (value.length > _notesLimit) {
- return "Notes can't be more than 1000 characters";
- }
- return null;
- },
- maxLength: _notesLimit,
- minLines: 1,
- maxLines: 5,
- decoration: const InputDecoration(
- contentPadding:
- EdgeInsets.symmetric(vertical: 12.0),
- ),
- style: getEnteTextTheme(context).small,
- controller: _notesController,
- ),
- ),
- ],
- ),
- const SizedBox(height: 12),
- ],
+ child: TextFormField(
+ // The validator receives the text that the user has entered.
+ validator: (value) {
+ if (value == null || value.isEmpty) {
+ return "Please enter some text";
+ }
+ if (value.length > _notesLimit) {
+ return "Notes can't be more than 1000 characters";
+ }
+ return null;
+ },
+ maxLength: _notesLimit,
+ minLines: 1,
+ maxLines: 5,
+ decoration: const InputDecoration(
+ contentPadding: EdgeInsets.symmetric(vertical: 12.0),
),
+ style: getEnteTextTheme(context).small,
+ controller: _notesController,
),
),
],
),
- const SizedBox(height: 10),
+ const SizedBox(height: 12),
Wrap(
spacing: 12,
alignment: WrapAlignment.start,