dev
dart 22 lines 671 Bytes
Raw
1 import 'package:cake_wallet/generated/i18n.dart';
2 import 'package:flutter/cupertino.dart';
3 import 'package:flutter/material.dart';
4
5 class KeyboardDoneButton extends StatelessWidget {
6 @override
7 Widget build(BuildContext context) {
8 return CupertinoButton(
9 padding: EdgeInsets.only(right: 24.0, top: 8.0, bottom: 8.0),
10 onPressed: () {
11 FocusScope.of(context).requestFocus(FocusNode());
12 },
13 child: Text(
14 S.of(context).done,
15 style: Theme.of(context).textTheme.bodyMedium?.copyWith(
16 color: Theme.of(context).colorScheme.primary,
17 fontWeight: FontWeight.bold,
18 ),
19 ),
20 );
21 }
22 }