photo_view_x 0.0.1 photo_view_x: ^0.0.1 copied to clipboard
In the gallery, you can slide down the gradient to return to the previous page.
import 'package:flutter/material.dart';
import 'page/gallery_page.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'PhotoView Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: const GalleryPage(title: 'Gallery Page'),
);
}
}