viewer: increased max zoom for raster items
This commit is contained in:
parent
09c0b63c05
commit
b4fe7781dc
1 changed files with 5 additions and 2 deletions
|
@ -75,6 +75,9 @@ class _EntryPageViewState extends State<EntryPageView> {
|
||||||
// use the high res photo as cover for the video part of a motion photo
|
// use the high res photo as cover for the video part of a motion photo
|
||||||
ImageProvider get videoCoverUriImage => mainEntry.isMotionPhoto ? mainEntry.uriImage : entry.uriImage;
|
ImageProvider get videoCoverUriImage => mainEntry.isMotionPhoto ? mainEntry.uriImage : entry.uriImage;
|
||||||
|
|
||||||
|
static const rasterMaxScale = ScaleLevel(factor: 5);
|
||||||
|
static const vectorMaxScale = ScaleLevel(factor: 25);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
super.initState();
|
super.initState();
|
||||||
|
@ -174,7 +177,7 @@ class _EntryPageViewState extends State<EntryPageView> {
|
||||||
|
|
||||||
Widget _buildSvgView() {
|
Widget _buildSvgView() {
|
||||||
return _buildMagnifier(
|
return _buildMagnifier(
|
||||||
maxScale: const ScaleLevel(factor: 25),
|
maxScale: vectorMaxScale,
|
||||||
scaleStateCycle: _vectorScaleStateCycle,
|
scaleStateCycle: _vectorScaleStateCycle,
|
||||||
applyScale: false,
|
applyScale: false,
|
||||||
child: VectorImageView(
|
child: VectorImageView(
|
||||||
|
@ -365,7 +368,7 @@ class _EntryPageViewState extends State<EntryPageView> {
|
||||||
Widget _buildMagnifier({
|
Widget _buildMagnifier({
|
||||||
MagnifierController? controller,
|
MagnifierController? controller,
|
||||||
Size? displaySize,
|
Size? displaySize,
|
||||||
ScaleLevel maxScale = const ScaleLevel(factor: 2.0),
|
ScaleLevel maxScale = rasterMaxScale,
|
||||||
ScaleStateCycle scaleStateCycle = defaultScaleStateCycle,
|
ScaleStateCycle scaleStateCycle = defaultScaleStateCycle,
|
||||||
bool applyScale = true,
|
bool applyScale = true,
|
||||||
MagnifierDoubleTapCallback? onDoubleTap,
|
MagnifierDoubleTapCallback? onDoubleTap,
|
||||||
|
|
Loading…
Reference in a new issue