File tree 4 files changed +16
-2
lines changed
4 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -71,13 +71,13 @@ class _LoginViewMobileState extends State<LoginViewMobile> {
71
71
ScaffoldMessenger .of (context).showSnackBar (
72
72
SnackBar (
73
73
content: Text (
74
- state.message ,
74
+ "Invalid email or password, please try again." ,
75
75
style: AppTextStyles .s14 (
76
76
color: AppColor .appWhite,
77
77
fontType: FontType .MEDIUM ,
78
78
),
79
79
),
80
- backgroundColor: AppColor .appSecondary ,
80
+ backgroundColor: AppColor .appWarningRed ,
81
81
),
82
82
);
83
83
}
Original file line number Diff line number Diff line change @@ -315,9 +315,11 @@ class _FeedPostCardState extends State<FeedPostCard>
315
315
SizedBox (
316
316
width: 430 ,
317
317
child: TextFormField (
318
+ cursorColor: AppColor .appPrimary,
318
319
focusNode: commentFocusNode,
319
320
controller: commentController,
320
321
decoration: InputDecoration (
322
+ focusColor: AppColor .appPrimary,
321
323
suffixIcon: GestureDetector (
322
324
onTap: () {
323
325
locator <CommentsBloc >().add (
@@ -326,6 +328,7 @@ class _FeedPostCardState extends State<FeedPostCard>
326
328
comment: commentController.text,
327
329
),
328
330
);
331
+ commentController.clear ();
329
332
},
330
333
child: Padding (
331
334
padding: const EdgeInsets .all (8.0 ),
Original file line number Diff line number Diff line change @@ -213,9 +213,17 @@ class _CommentScreenState extends State<CommentScreen> {
213
213
SizedBox (
214
214
width: MediaQuery .sizeOf (context).width * 2.2 / 3 ,
215
215
child: TextFormField (
216
+ cursorColor: AppColor .appPrimary,
216
217
focusNode: commentFocusNode,
217
218
controller: commentController,
218
219
decoration: InputDecoration (
220
+ focusedBorder: const OutlineInputBorder (
221
+ borderSide:
222
+ BorderSide (color: AppColor .appPrimary, width: 2 ),
223
+ borderRadius: BorderRadius .all (
224
+ Radius .circular (20 ),
225
+ ),
226
+ ),
219
227
suffixIcon: GestureDetector (
220
228
onTap: () {
221
229
locator <CommentsBloc >().add (
@@ -224,6 +232,8 @@ class _CommentScreenState extends State<CommentScreen> {
224
232
comment: commentController.text,
225
233
),
226
234
);
235
+ // clear the text field
236
+ commentController.clear ();
227
237
},
228
238
child: Padding (
229
239
padding: const EdgeInsets .all (8.0 ),
Original file line number Diff line number Diff line change @@ -12,4 +12,5 @@ class AppColor {
12
12
static const Color appGrey = Color (0xFF4B5669 );
13
13
static const Color appTextGrey = Color (0xFF838B98 );
14
14
static const Color appTextLightGrey = Color (0xFF707988 );
15
+ static const Color appWarningRed = Color (0xFFE74C3C );
15
16
}
You can’t perform that action at this time.
0 commit comments