updated iconpicker

This commit is contained in:
2022-11-18 14:51:47 -05:00
parent 4cfffa59f9
commit 7e6ccf67a2
7 changed files with 75 additions and 9 deletions

View File

@@ -105,7 +105,10 @@ class _EditCarScreenState extends State<EditCarScreen> {
leading: CircleAvatar(
backgroundImage: AssetImage(car.icon ?? selectedIcon),
backgroundColor: Colors.white),
title: const Text("Change Icon"),
title: Text(
"Change Icon",
style: TextStyle(color: Colors.grey[700], fontSize: 14),
),
onTap: () => showDialog(
barrierColor: Colors.black.withOpacity(.5),
context: context,
@@ -113,7 +116,6 @@ class _EditCarScreenState extends State<EditCarScreen> {
return ip;
}).then((value) => setState(
() {
// selectedIcon = ip.selectedIcon;
selectedIcon = value;
},
))),