Remove shadow color and surface int

This commit is contained in:
Ankit Mahato
2023-03-09 23:53:21 +05:30
parent 28977d9cf7
commit cfd585988d
3 changed files with 0 additions and 9 deletions

View File

@ -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,

View File

@ -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,

View File

@ -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();