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