Compare commits

...

2 Commits

Author SHA1 Message Date
28db4ce298 Add: Clear search 2024-05-21 23:50:30 +03:00
30fdc0a144 Fix: Floating btn hover elevation 2024-05-21 23:50:18 +03:00

View File

@@ -121,6 +121,9 @@ class _MainPageState extends State<MainPage> {
child: TextField( child: TextField(
onChanged: (value) => setState(() { onChanged: (value) => setState(() {
searchText = value; searchText = value;
if (searchText == '') {
_onSearch();
}
}), }),
decoration: InputDecoration( decoration: InputDecoration(
hintText: 'Поиск', hintText: 'Поиск',
@@ -241,6 +244,11 @@ class _MainPageState extends State<MainPage> {
builder: (context) => const BasketPage(), builder: (context) => const BasketPage(),
)), )),
highlightElevation: 0, highlightElevation: 0,
hoverColor: Colors.transparent,
focusColor: Colors.transparent,
hoverElevation: 0,
focusElevation: 0,
splashColor: Colors.transparent,
backgroundColor: Colors.transparent, backgroundColor: Colors.transparent,
elevation: 0, elevation: 0,
child: CircleAvatar( child: CircleAvatar(