@@ -194,47 +194,50 @@ class _ExpandKeyBoardState extends State<ExpandKeyBoard> with TickerProviderStat
194194 }
195195
196196 Widget _buildAnimation (BuildContext context, Widget child) {
197- return Container (
198- margin: EdgeInsets .symmetric (horizontal: 5.0 ),
199- decoration: BoxDecoration (
200- borderRadius: BorderRadius .only (topRight: Radius .circular (20.0 ),topLeft: Radius .circular (20.0 )),
197+ return Padding (
198+ padding: EdgeInsets .symmetric (horizontal: 5.0 ),
199+ child: Material (
201200 color: Colors .blueAccent[400 ],
202- ),
203- child: Column (
204- mainAxisSize: MainAxisSize .min,
205- children: < Widget > [
206- SizedBox (
207- height: arrowAnimation.value,
208- width: double .infinity,
209- child: FlatButton (
210- splashColor: Colors .transparent,
211- highlightColor: Colors .transparent,
212- onPressed: () {
213- final setting = Provider .of <SettingModel >(context, listen: false );
214- if (animationController.status == AnimationStatus .dismissed) {
215- animationController.forward ();
216- setting.changeKeyboardMode (true );
217- } else {
218- animationController.reverse ();
219- setting.changeKeyboardMode (false );
220- }
221- },
222- child: Icon (
223- (keyboardAnimation.value > _height* 0.8 )? Icons .keyboard_arrow_down: Icons .keyboard_arrow_up,
224- color: Colors .grey[200 ],
201+ borderRadius: BorderRadius .only (
202+ topRight: Radius .circular (20.0 ),
203+ topLeft: Radius .circular (20.0 ),
204+ ),
205+ child: Column (
206+ mainAxisSize: MainAxisSize .min,
207+ children: < Widget > [
208+ SizedBox (
209+ height: arrowAnimation.value,
210+ width: double .infinity,
211+ child: FlatButton (
212+ splashColor: Colors .transparent,
213+ highlightColor: Colors .transparent,
214+ onPressed: () {
215+ final setting = Provider .of <SettingModel >(context, listen: false );
216+ if (animationController.status == AnimationStatus .dismissed) {
217+ animationController.forward ();
218+ setting.changeKeyboardMode (true );
219+ } else {
220+ animationController.reverse ();
221+ setting.changeKeyboardMode (false );
222+ }
223+ },
224+ child: Icon (
225+ (keyboardAnimation.value > _height* 0.8 )? Icons .keyboard_arrow_down: Icons .keyboard_arrow_up,
226+ color: Colors .grey[200 ],
227+ ),
225228 ),
226229 ),
227- ),
228- SizedBox (
229- height : keyboardAnimation.value,
230- child : GridView . count (
231- physics : NeverScrollableScrollPhysics () ,
232- crossAxisCount : 7 ,
233- children : _buildUpButton () ,
234- childAspectRatio : AspectRatio ,
230+ SizedBox (
231+ height : keyboardAnimation.value,
232+ child : GridView . count (
233+ physics : NeverScrollableScrollPhysics (),
234+ crossAxisCount : 7 ,
235+ children : _buildUpButton () ,
236+ childAspectRatio : AspectRatio ,
237+ ) ,
235238 ),
236- ) ,
237- ] ,
239+ ] ,
240+ ) ,
238241 ),
239242 );
240243 }
@@ -475,7 +478,7 @@ class _ExpandKeyBoardState extends State<ExpandKeyBoard> with TickerProviderStat
475478
476479 button.add (MyButton (
477480 child: Icon (// expo
478- IconData (0xe905 , fontFamily: 'Keyboard' ),
481+ IconData (0xe906 , fontFamily: 'Keyboard' ),
479482 color: fontColor,
480483 size: iconSize,
481484 ),
0 commit comments