Working on inkwells

This commit is contained in:
Hillel Coren 2020-05-15 09:11:13 +03:00
parent 06890afbd5
commit e94faf0444
2 changed files with 44 additions and 48 deletions

View File

@ -325,14 +325,7 @@ void viewEntitiesByType({
} }
if (action != null) { if (action != null) {
if (kIsWeb && isNotMobile(context)) {
store.dispatch(StartLoading());
WidgetsBinding.instance.addPostFrameCallback((duration) {
store.dispatch(action); store.dispatch(action);
});
} else {
store.dispatch(action);
}
} }
} }

View File

@ -428,12 +428,14 @@ class _DrawerTileState extends State<DrawerTile> {
} }
} }
Widget child = Container( Widget child = Material(
color: Colors.transparent,
child: Container(
color: isSelected color: isSelected
? convertHexStringToColor(enableDarkMode ? convertHexStringToColor(enableDarkMode
? kDefaultDarkSelectedColorMenu ? kDefaultDarkSelectedColorMenu
: kDefaultLightSelectedColorMenu) : kDefaultLightSelectedColorMenu)
: null, : Colors.transparent,
child: ListTile( child: ListTile(
dense: true, dense: true,
leading: Icon( leading: Icon(
@ -470,6 +472,7 @@ class _DrawerTileState extends State<DrawerTile> {
*/ */
trailing: trailingWidget, trailing: trailingWidget,
), ),
),
); );
if (state.prefState.isMenuCollapsed) { if (state.prefState.isMenuCollapsed) {