Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions example/lib/sample3.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,17 @@ class Sample3 extends StatelessWidget {

/// Returns the custom [Widget] to be rendered as the *"Done"* button.
Widget _buildMyDoneWidget() {
return Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text('My Done Widget'),
const SizedBox(width: 10.0),
Icon(Icons.arrow_drop_down, size: 20.0),
],
return Center(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 12),
child: Row(
children: [
Text('My Done Widget'),
const SizedBox(width: 10.0),
Icon(Icons.arrow_drop_down, size: 20.0),
],
),
),
);
}
}
18 changes: 11 additions & 7 deletions example/lib/sample5.dart
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,17 @@ class Sample5 extends StatelessWidget {

/// Returns the custom [Widget] to be rendered as the *"Done"* button.
Widget _buildMyDoneWidget() {
return Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text('My Done Widget'),
const SizedBox(width: 10.0),
Icon(Icons.arrow_drop_down, size: 20.0),
],
return Center(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 12),
child: Row(
children: [
Text('My Done Widget'),
const SizedBox(width: 10.0),
Icon(Icons.arrow_drop_down, size: 20.0),
],
),
),
);
}
}
14 changes: 8 additions & 6 deletions lib/keyboard_actions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -561,18 +561,20 @@ class KeyboardActionstate extends State<KeyboardActions>
}
_clearFocus();
},
child: Container(
padding:
EdgeInsets.symmetric(vertical: 8.0, horizontal: 12.0),
child: config?.defaultDoneWidget ??
Text(
child: config?.defaultDoneWidget ??
Container(
padding: EdgeInsets.symmetric(
vertical: 6.0,
horizontal: 12.0,
),
child: Text(
config?.defaultDoneButtonText ?? "Done",
style: TextStyle(
fontSize: 16.0,
fontWeight: FontWeight.w500,
),
),
),
),
),
),
if (_currentAction?.toolbarButtons != null)
Expand Down