mirror of
https://github.com/foss42/apidash.git
synced 2025-06-29 20:37:12 +08:00
Small button styles
This commit is contained in:
@ -48,6 +48,7 @@ const kHintOpacity = 0.6;
|
|||||||
const kForegroundOpacity = 0.05;
|
const kForegroundOpacity = 0.05;
|
||||||
|
|
||||||
const kTextStyleButton = TextStyle(fontWeight: FontWeight.bold);
|
const kTextStyleButton = TextStyle(fontWeight: FontWeight.bold);
|
||||||
|
const kTextStyleButtonSmall = TextStyle(fontSize: 12);
|
||||||
const kFormDataButtonLabelTextStyle = TextStyle(
|
const kFormDataButtonLabelTextStyle = TextStyle(
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
fontWeight: FontWeight.w600,
|
fontWeight: FontWeight.w600,
|
||||||
|
@ -181,17 +181,26 @@ class _JsonPreviewerState extends State<JsonPreviewer> {
|
|||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
await _copy(kEncoder.convert(widget.code), sm);
|
await _copy(kEncoder.convert(widget.code), sm);
|
||||||
},
|
},
|
||||||
child: const Text('Copy'),
|
child: const Text(
|
||||||
|
'Copy',
|
||||||
|
style: kTextStyleButtonSmall,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
TextButton(
|
TextButton(
|
||||||
onPressed:
|
onPressed:
|
||||||
state.areAllExpanded() ? null : state.expandAll,
|
state.areAllExpanded() ? null : state.expandAll,
|
||||||
child: const Text('Expand All'),
|
child: const Text(
|
||||||
|
'Expand All',
|
||||||
|
style: kTextStyleButtonSmall,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
TextButton(
|
TextButton(
|
||||||
onPressed:
|
onPressed:
|
||||||
state.areAllCollapsed() ? null : state.collapseAll,
|
state.areAllCollapsed() ? null : state.collapseAll,
|
||||||
child: const Text('Collapse All'),
|
child: const Text(
|
||||||
|
'Collapse All',
|
||||||
|
style: kTextStyleButtonSmall,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
Reference in New Issue
Block a user