Skip to content

Instantly share code, notes, and snippets.

@webianks
Created August 22, 2019 06:36
Show Gist options
  • Save webianks/ed32fc37445bc00fe2c24f53e006f8aa to your computer and use it in GitHub Desktop.
Save webianks/ed32fc37445bc00fe2c24f53e006f8aa to your computer and use it in GitHub Desktop.
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