@@ -447,7 +447,6 @@ class _ChatPageState extends State<ChatPage> {
447
447
448
448
Widget showBottomTools () {
449
449
return Container (
450
- height: widget.configuration.screenHeight / 11 ,
451
450
color: PrimaryColor ,
452
451
child: Row (
453
452
mainAxisAlignment: MainAxisAlignment .spaceBetween,
@@ -544,44 +543,51 @@ class _ChatPageState extends State<ChatPage> {
544
543
color: PrimaryColorDark ,
545
544
width: widget.configuration.screenWidth / 300 ),
546
545
borderRadius:
547
- BorderRadius .circular (widget.configuration.screenWidth)),
548
- child: membersDataIsLoaded
549
- ? TextField (
550
- minLines: 1 ,
551
- maxLines: 10 ,
552
- maxLength: 1000 ,
553
- textAlignVertical: TextAlignVertical .center,
554
- controller: sendBoxController,
555
- onChanged: (value) => newMessage = value.trim (),
556
- onSubmitted: (value) => sendMessage (),
557
- style: TextStyle (
558
- color: Colors .white,
559
- fontSize: 12 * widget.configuration.textSizeFactor),
560
- textInputAction: TextInputAction .send,
561
- decoration: InputDecoration (
562
- counterText: "" ,
563
- contentPadding: EdgeInsets .symmetric (
564
- horizontal: widget.configuration.screenWidth / 25 ,
565
- vertical: widget.configuration.screenHeight / 50 ,
546
+ BorderRadius .circular (widget.configuration.screenHeight / 20 )),
547
+ child: ConstrainedBox (
548
+ constraints: BoxConstraints (
549
+ maxHeight: widget.configuration.screenHeight / 8 ,
550
+ minHeight: widget.configuration.screenHeight / 30 ,
551
+ ),
552
+ child:
553
+ membersDataIsLoaded
554
+ ? TextField (
555
+ minLines: 1 ,
556
+ maxLines: 10 ,
557
+ maxLength: 1000 ,
558
+ textAlignVertical: TextAlignVertical .center,
559
+ controller: sendBoxController,
560
+ onChanged: (value) => newMessage = value.trim (),
561
+ onSubmitted: (value) => sendMessage (),
562
+ style: TextStyle (
563
+ color: Colors .white,
564
+ fontSize: 12 * widget.configuration.textSizeFactor),
565
+ textInputAction: TextInputAction .send,
566
+ decoration: InputDecoration (
567
+ counterText: "" ,
568
+ contentPadding: EdgeInsets .symmetric (
569
+ horizontal: widget.configuration.screenWidth / 25 ,
570
+ vertical: widget.configuration.screenHeight / 150 ,
571
+ ),
572
+ hintText: AppLocalizations .of (context)
573
+ .translate ("Send a message..." ),
574
+ hintMaxLines: 1 ,
575
+ hintStyle: TextStyle (
576
+ color: Colors .white70,
577
+ fontSize: 12 * widget.configuration.textSizeFactor),
578
+ border: InputBorder .none,
579
+ focusedBorder: InputBorder .none,
580
+ enabledBorder: InputBorder .none,
581
+ errorBorder: InputBorder .none,
582
+ disabledBorder: InputBorder .none,
583
+ ),
584
+ )
585
+ : Padding (
586
+ padding:
587
+ EdgeInsets .all (widget.configuration.screenHeight / 50 ),
588
+ child: CircularProgressIndicator (),
566
589
),
567
- hintText: AppLocalizations .of (context)
568
- .translate ("Send a message..." ),
569
- hintMaxLines: 1 ,
570
- hintStyle: TextStyle (
571
- color: Colors .white70,
572
- fontSize: 12 * widget.configuration.textSizeFactor),
573
- border: InputBorder .none,
574
- focusedBorder: InputBorder .none,
575
- enabledBorder: InputBorder .none,
576
- errorBorder: InputBorder .none,
577
- disabledBorder: InputBorder .none,
578
- ),
579
- )
580
- : Padding (
581
- padding:
582
- EdgeInsets .all (widget.configuration.screenHeight / 50 ),
583
- child: CircularProgressIndicator (),
584
- ),
590
+ ),
585
591
),
586
592
),
587
593
);
0 commit comments