@@ -72,34 +72,33 @@ class _EditNoteViewState extends ConsumerState<EditNoteView> {
7272 condition: ! isDesktop,
7373 builder: (child) => Background (child: child),
7474 child: Scaffold (
75- backgroundColor:
76- isDesktop
77- ? Colors .transparent
78- : Theme .of (context).extension < StackColors > ()! .background,
79- appBar:
80- isDesktop
81- ? null
82- : AppBar (
83- backgroundColor:
84- Theme .of (context).extension < StackColors > ()! .background,
85- leading: AppBarBackButton (
86- onPressed: () async {
87- if (FocusScope .of (context).hasFocus) {
88- FocusScope .of (context).unfocus ();
89- await Future <void >.delayed (
90- const Duration (milliseconds: 75 ),
91- );
92- }
93- if (mounted) {
94- Navigator .of (context).pop ();
95- }
96- },
97- ),
98- title: Text (
99- "Edit note" ,
100- style: STextStyles .navBarTitle (context),
101- ),
75+ backgroundColor: isDesktop
76+ ? Colors .transparent
77+ : Theme .of (context).extension < StackColors > ()! .background,
78+ appBar: isDesktop
79+ ? null
80+ : AppBar (
81+ backgroundColor: Theme .of (
82+ context,
83+ ).extension < StackColors > ()! .background,
84+ leading: AppBarBackButton (
85+ onPressed: () async {
86+ if (FocusScope .of (context).hasFocus) {
87+ FocusScope .of (context).unfocus ();
88+ await Future <void >.delayed (
89+ const Duration (milliseconds: 75 ),
90+ );
91+ }
92+ if (mounted) {
93+ Navigator .of (context).pop ();
94+ }
95+ },
96+ ),
97+ title: Text (
98+ "Edit note" ,
99+ style: STextStyles .navBarTitle (context),
102100 ),
101+ ),
103102 body: MobileEditNoteScaffold (
104103 child: Column (
105104 crossAxisAlignment: CrossAxisAlignment .stretch,
@@ -116,10 +115,9 @@ class _EditNoteViewState extends ConsumerState<EditNoteView> {
116115 ),
117116 ),
118117 Padding (
119- padding:
120- isDesktop
121- ? const EdgeInsets .symmetric (horizontal: 32 )
122- : const EdgeInsets .all (0 ),
118+ padding: isDesktop
119+ ? const EdgeInsets .symmetric (horizontal: 32 )
120+ : const EdgeInsets .all (0 ),
123121 child: ClipRRect (
124122 borderRadius: BorderRadius .circular (
125123 Constants .size.circularBorderRadius,
@@ -128,55 +126,50 @@ class _EditNoteViewState extends ConsumerState<EditNoteView> {
128126 autocorrect: Util .isDesktop ? false : true ,
129127 enableSuggestions: Util .isDesktop ? false : true ,
130128 controller: _noteController,
131- style:
132- isDesktop
133- ? STextStyles . desktopTextExtraSmall (
129+ style: isDesktop
130+ ? STextStyles . desktopTextExtraSmall (context). copyWith (
131+ color : Theme . of (
134132 context,
135- ).copyWith (
136- color:
137- Theme .of (context)
138- .extension < StackColors > ()!
139- .textFieldActiveText,
140- height: 1.8 ,
141- )
142- : STextStyles .field (context),
133+ ).extension < StackColors > ()! .textFieldActiveText,
134+ height: 1.8 ,
135+ )
136+ : STextStyles .field (context),
143137 focusNode: noteFieldFocusNode,
144- decoration: standardInputDecoration (
145- "Note" ,
146- noteFieldFocusNode ,
147- context ,
148- desktopMed : isDesktop ,
149- ). copyWith (
150- contentPadding :
151- isDesktop
138+ decoration:
139+ standardInputDecoration (
140+ "Note" ,
141+ noteFieldFocusNode ,
142+ context ,
143+ desktopMed : isDesktop,
144+ ). copyWith (
145+ contentPadding : isDesktop
152146 ? const EdgeInsets .only (
153- left: 16 ,
154- top: 11 ,
155- bottom: 12 ,
156- right: 5 ,
157- )
147+ left: 16 ,
148+ top: 11 ,
149+ bottom: 12 ,
150+ right: 5 ,
151+ )
158152 : null ,
159- suffixIcon:
160- _noteController.text.isNotEmpty
153+ suffixIcon: _noteController.text.isNotEmpty
161154 ? Padding (
162- padding: const EdgeInsets .only (right: 0 ),
163- child: UnconstrainedBox (
164- child: Row (
165- children: [
166- TextFieldIconButton (
167- child: const XIcon (),
168- onTap: () async {
169- setState (() {
170- _noteController.text = "" ;
171- });
172- },
173- ),
174- ],
155+ padding: const EdgeInsets .only (right: 0 ),
156+ child: UnconstrainedBox (
157+ child: Row (
158+ children: [
159+ TextFieldIconButton (
160+ child: const XIcon (),
161+ onTap: () async {
162+ setState (() {
163+ _noteController.text = "" ;
164+ });
165+ },
166+ ),
167+ ],
168+ ),
175169 ),
176- ),
177- )
170+ )
178171 : null ,
179- ),
172+ ),
180173 ),
181174 ),
182175 ),
0 commit comments