|
|
|
@ -16,7 +16,7 @@ class ImageViewerView extends StatelessWidget {
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
final iconButtonStyle = IconButton.styleFrom(
|
|
|
|
|
backgroundColor: Colors.black.withAlpha(128),
|
|
|
|
|
backgroundColor: Colors.black.withAlpha(200),
|
|
|
|
|
foregroundColor: Colors.white,
|
|
|
|
|
);
|
|
|
|
|
return GestureDetector(
|
|
|
|
@ -96,6 +96,8 @@ class ImageViewerView extends StatelessWidget {
|
|
|
|
|
if (hovered && controller.canGoBack)
|
|
|
|
|
Align(
|
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: const EdgeInsets.all(12.0),
|
|
|
|
|
child: IconButton(
|
|
|
|
|
style: iconButtonStyle,
|
|
|
|
|
icon: const Icon(Icons.chevron_left_outlined),
|
|
|
|
@ -105,9 +107,12 @@ class ImageViewerView extends StatelessWidget {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
if (hovered && controller.canGoNext)
|
|
|
|
|
Align(
|
|
|
|
|
alignment: Alignment.centerRight,
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: const EdgeInsets.all(12.0),
|
|
|
|
|
child: IconButton(
|
|
|
|
|
style: iconButtonStyle,
|
|
|
|
|
icon: const Icon(Icons.chevron_right_outlined),
|
|
|
|
@ -117,6 +122,7 @@ class ImageViewerView extends StatelessWidget {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|