mirror of
https://github.com/foss42/apidash.git
synced 2025-06-02 16:02:12 +08:00
Change border radius
This commit is contained in:
@ -10,12 +10,13 @@ const kHintOpacity = 0.6;
|
|||||||
|
|
||||||
const kTextStyleButton = TextStyle(fontWeight: FontWeight.bold);
|
const kTextStyleButton = TextStyle(fontWeight: FontWeight.bold);
|
||||||
|
|
||||||
|
const kBorderRadius8 = BorderRadius.all(Radius.circular(8));
|
||||||
final kBorderRadius10 = BorderRadius.circular(10);
|
final kBorderRadius10 = BorderRadius.circular(10);
|
||||||
const kBorder12 = BorderRadius.all(Radius.circular(12));
|
const kBorderRadius12 = BorderRadius.all(Radius.circular(12));
|
||||||
|
|
||||||
const kTableContainerDecoration = BoxDecoration(
|
const kTableContainerDecoration = BoxDecoration(
|
||||||
color: kColorBg,
|
color: kColorBg,
|
||||||
borderRadius: kBorder12,
|
borderRadius: kBorderRadius12,
|
||||||
);
|
);
|
||||||
|
|
||||||
const kP1 = EdgeInsets.all(1);
|
const kP1 = EdgeInsets.all(1);
|
||||||
|
@ -136,13 +136,13 @@ class _RequestItemState extends ConsumerState<RequestItem> {
|
|||||||
final activeRequest = ref.watch(activeIdStateProvider);
|
final activeRequest = ref.watch(activeIdStateProvider);
|
||||||
bool isActiveId = activeRequest == widget.id;
|
bool isActiveId = activeRequest == widget.id;
|
||||||
return Material(
|
return Material(
|
||||||
borderRadius: kBorder12,
|
borderRadius: kBorderRadius12,
|
||||||
elevation: isActiveId ? 1 : 0,
|
elevation: isActiveId ? 1 : 0,
|
||||||
surfaceTintColor: isActiveId ? surfaceTint : null,
|
surfaceTintColor: isActiveId ? surfaceTint : null,
|
||||||
color: color,
|
color: color,
|
||||||
type: MaterialType.card,
|
type: MaterialType.card,
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
borderRadius: kBorder12,
|
borderRadius: kBorderRadius12,
|
||||||
onTap: () {
|
onTap: () {
|
||||||
ref.read(activeIdStateProvider.notifier).update((state) => widget.id);
|
ref.read(activeIdStateProvider.notifier).update((state) => widget.id);
|
||||||
},
|
},
|
||||||
|
@ -28,7 +28,7 @@ class _EditorPaneRequestDetailsCardState
|
|||||||
side: BorderSide(
|
side: BorderSide(
|
||||||
color: Theme.of(context).colorScheme.surfaceVariant,
|
color: Theme.of(context).colorScheme.surfaceVariant,
|
||||||
),
|
),
|
||||||
borderRadius: kBorder12,
|
borderRadius: kBorderRadius12,
|
||||||
),
|
),
|
||||||
elevation: 0,
|
elevation: 0,
|
||||||
child: MultiSplitViewTheme(
|
child: MultiSplitViewTheme(
|
||||||
|
@ -21,7 +21,6 @@ class _EditRequestBodyState extends ConsumerState<EditRequestBody> {
|
|||||||
return Container(
|
return Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Theme.of(context).colorScheme.background,
|
color: Theme.of(context).colorScheme.background,
|
||||||
borderRadius: kBorder12,
|
|
||||||
),
|
),
|
||||||
margin: kP5,
|
margin: kP5,
|
||||||
child: Column(
|
child: Column(
|
||||||
@ -96,7 +95,7 @@ class _DropdownButtonBodyContentTypeState
|
|||||||
.read(collectionStateNotifierProvider.notifier)
|
.read(collectionStateNotifierProvider.notifier)
|
||||||
.update(activeId!, requestBodyContentType: value);
|
.update(activeId!, requestBodyContentType: value);
|
||||||
},
|
},
|
||||||
borderRadius: kBorder12,
|
borderRadius: kBorderRadius8,
|
||||||
items: ContentType.values
|
items: ContentType.values
|
||||||
.map<DropdownMenuItem<ContentType>>((ContentType value) {
|
.map<DropdownMenuItem<ContentType>>((ContentType value) {
|
||||||
return DropdownMenuItem<ContentType>(
|
return DropdownMenuItem<ContentType>(
|
||||||
|
@ -158,7 +158,7 @@ class EditRequestHeadersState extends ConsumerState<EditRequestHeaders> {
|
|||||||
Container(
|
Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Theme.of(context).colorScheme.background,
|
color: Theme.of(context).colorScheme.background,
|
||||||
borderRadius: kBorder12,
|
borderRadius: kBorderRadius12,
|
||||||
),
|
),
|
||||||
margin: kP10,
|
margin: kP10,
|
||||||
child: Column(
|
child: Column(
|
||||||
|
@ -159,7 +159,7 @@ class EditRequestURLParamsState extends ConsumerState<EditRequestURLParams> {
|
|||||||
Container(
|
Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Theme.of(context).colorScheme.background,
|
color: Theme.of(context).colorScheme.background,
|
||||||
borderRadius: kBorder12,
|
borderRadius: kBorderRadius12,
|
||||||
),
|
),
|
||||||
margin: kP10,
|
margin: kP10,
|
||||||
child: Column(
|
child: Column(
|
||||||
|
@ -26,7 +26,7 @@ class _EditorPaneRequestURLCardState extends State<EditorPaneRequestURLCard> {
|
|||||||
side: BorderSide(
|
side: BorderSide(
|
||||||
color: Theme.of(context).colorScheme.surfaceVariant,
|
color: Theme.of(context).colorScheme.surfaceVariant,
|
||||||
),
|
),
|
||||||
borderRadius: kBorder12,
|
borderRadius: kBorderRadius12,
|
||||||
),
|
),
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.symmetric(
|
padding: const EdgeInsets.symmetric(
|
||||||
|
@ -76,6 +76,7 @@ class _TextFieldEditorState extends State<TextFieldEditor> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
focusedBorder: OutlineInputBorder(
|
focusedBorder: OutlineInputBorder(
|
||||||
|
borderRadius: kBorderRadius8,
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: Theme.of(context).colorScheme.primary.withOpacity(
|
color: Theme.of(context).colorScheme.primary.withOpacity(
|
||||||
kHintOpacity,
|
kHintOpacity,
|
||||||
@ -83,6 +84,7 @@ class _TextFieldEditorState extends State<TextFieldEditor> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
enabledBorder: OutlineInputBorder(
|
enabledBorder: OutlineInputBorder(
|
||||||
|
borderRadius: kBorderRadius8,
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: Theme.of(context).colorScheme.surfaceVariant,
|
color: Theme.of(context).colorScheme.surfaceVariant,
|
||||||
),
|
),
|
||||||
|
Reference in New Issue
Block a user