mirror of
https://github.com/foss42/apidash.git
synced 2025-05-22 00:36:43 +08:00
Remove shadow color and surface int
This commit is contained in:
@ -135,14 +135,12 @@ class _RequestItemState extends ConsumerState<RequestItem> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final Color color = Theme.of(context).colorScheme.surface;
|
||||
final Color shadowColor = Theme.of(context).colorScheme.shadow;
|
||||
final Color surfaceTint = Theme.of(context).colorScheme.primary;
|
||||
final activeRequest = ref.watch(activeIdStateProvider);
|
||||
bool isActiveId = activeRequest == widget.id;
|
||||
return Material(
|
||||
borderRadius: border12,
|
||||
elevation: isActiveId ? 1 : 0,
|
||||
//shadowColor: isActiveId ? shadowColor : null,
|
||||
surfaceTintColor: isActiveId ? surfaceTint : null,
|
||||
color: color,
|
||||
type: MaterialType.card,
|
||||
|
@ -22,13 +22,8 @@ class _EditorPaneRequestURLCardState
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final Color shadowColor = Theme.of(context).colorScheme.shadow;
|
||||
final Color color = Theme.of(context).colorScheme.surface;
|
||||
final activeId = ref.watch(activeIdStateProvider);
|
||||
return Card(
|
||||
//elevation: 1,
|
||||
//shadowColor: shadowColor,
|
||||
//surfaceTintColor: color,
|
||||
elevation: 0,
|
||||
shape: RoundedRectangleBorder(
|
||||
side: BorderSide(
|
||||
@ -120,7 +115,6 @@ class _DropdownButtonHTTPMethodState
|
||||
.read(collectionStateNotifierProvider.notifier)
|
||||
.update(activeId!, method: value);
|
||||
},
|
||||
//borderRadius: borderRadius10,
|
||||
items: HTTPVerb.values.map<DropdownMenuItem<HTTPVerb>>((HTTPVerb value) {
|
||||
return DropdownMenuItem<HTTPVerb>(
|
||||
value: value,
|
||||
|
@ -1,5 +1,4 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:davi/davi.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
|
||||
final codeStyle = GoogleFonts.sourceCodePro();
|
||||
|
Reference in New Issue
Block a user