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

View File

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

View File

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