Implemented new router

This commit is contained in:
Juan Gilsanz Polo 2023-10-29 02:19:00 +01:00
parent 621171c5b1
commit 96fe7eb730
17 changed files with 985 additions and 1090 deletions

View file

@ -17,6 +17,7 @@ class LogTile extends StatelessWidget {
final bool? isLogSelected;
final void Function(Log) onLogTap;
final bool? useAlwaysNormalTile;
final bool twoColumns;
const LogTile({
Key? key,
@ -25,7 +26,8 @@ class LogTile extends StatelessWidget {
required this.index,
this.isLogSelected,
required this.onLogTap,
this.useAlwaysNormalTile
this.useAlwaysNormalTile,
required this.twoColumns,
}) : super(key: key);
@override
@ -83,7 +85,7 @@ class LogTile extends StatelessWidget {
}
}
if (width > 1100 && !(useAlwaysNormalTile == true)) {
if (twoColumns && !(useAlwaysNormalTile == true)) {
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 12),
child: InkWell(