diff --git a/lib/consts.dart b/lib/consts.dart index e598db62..f8f9f97c 100644 --- a/lib/consts.dart +++ b/lib/consts.dart @@ -48,6 +48,7 @@ const kHintOpacity = 0.6; const kForegroundOpacity = 0.05; const kTextStyleButton = TextStyle(fontWeight: FontWeight.bold); +const kTextStyleButtonSmall = TextStyle(fontSize: 12); const kFormDataButtonLabelTextStyle = TextStyle( fontSize: 12, fontWeight: FontWeight.w600, diff --git a/lib/widgets/json_previewer.dart b/lib/widgets/json_previewer.dart index 3056b23c..078a9721 100644 --- a/lib/widgets/json_previewer.dart +++ b/lib/widgets/json_previewer.dart @@ -181,17 +181,26 @@ class _JsonPreviewerState extends State { onPressed: () async { await _copy(kEncoder.convert(widget.code), sm); }, - child: const Text('Copy'), + child: const Text( + 'Copy', + style: kTextStyleButtonSmall, + ), ), TextButton( onPressed: state.areAllExpanded() ? null : state.expandAll, - child: const Text('Expand All'), + child: const Text( + 'Expand All', + style: kTextStyleButtonSmall, + ), ), TextButton( onPressed: state.areAllCollapsed() ? null : state.collapseAll, - child: const Text('Collapse All'), + child: const Text( + 'Collapse All', + style: kTextStyleButtonSmall, + ), ), ], ),