Tablet layout

This commit is contained in:
Hillel Coren 2019-08-20 08:44:42 +03:00
parent 2948afac4d
commit b097682ffa
1 changed files with 46 additions and 46 deletions

View File

@ -33,10 +33,7 @@ class DismissibleEntity extends StatelessWidget {
final localization = AppLocalization.of(context);
return SelectedIndicator(
isSelected: isSelected,
child: Slidable(
child: child,
return Slidable(
delegate: SlidableDrawerDelegate(),
key: Key(entity.entityKey + Random().nextInt(100000).toString()),
actions: <Widget>[
@ -59,7 +56,7 @@ class DismissibleEntity extends StatelessWidget {
caption: localization.more,
color: Colors.black45,
foregroundColor: Colors.white,
icon: Icons.more_horiz,
icon: Icons.more_vert,
onTap: () => onEntityAction(EntityAction.more),
),
],
@ -80,6 +77,9 @@ class DismissibleEntity extends StatelessWidget {
onTap: () => onEntityAction(EntityAction.delete),
),
],
child: SelectedIndicator(
isSelected: isSelected,
child: child,
),
);
}