Created
August 22, 2019 06:36
-
-
Save webianks/ed32fc37445bc00fe2c24f53e006f8aa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class InputDoneView extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Container( | |
width: double.infinity, | |
color: Color(Const.doneButtonBg), | |
child: Align( | |
alignment: Alignment.topRight, | |
child: Padding( | |
padding: const EdgeInsets.only(top: 4.0, bottom: 4.0), | |
child: CupertinoButton( | |
padding: EdgeInsets.only(right: 24.0, top: 8.0, bottom: 8.0), | |
onPressed: () { | |
FocusScope.of(context).requestFocus(new FocusNode()); | |
}, | |
child: Text( | |
"Done", | |
style: TextStyle(color: Color(Const.colorPrimary),fontWeight: FontWeight.bold) | |
), | |
), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment