Skip to content

Commit

Permalink
Fix opening animation in zoom view
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDoctorDE committed Oct 24, 2023
1 parent a7048c1 commit 9be3918
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
1 change: 0 additions & 1 deletion app/lib/actions/zoom.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:butterfly/cubits/current_index.dart';
import 'package:butterfly/cubits/transform.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';

Expand Down
3 changes: 0 additions & 3 deletions app/lib/selections/tools/hand.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,4 @@ part of '../selection.dart';

class HandSelection extends ToolSelection<HandTool> {
HandSelection(super.selected);

@override
List<Widget> buildProperties(BuildContext context) => super.buildProperties(context);
}
4 changes: 1 addition & 3 deletions app/lib/views/zoom.dart
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,7 @@ class _ZoomViewState extends State<ZoomView> with TickerProviderStateMixin {
if ((!_focusNode.hasFocus && widget.isMobile) || hideZoom) {
_controller.reverse();
} else {
if (_controller.status != AnimationStatus.completed) {
_controller.forward(from: 0);
}
_controller.forward();
}
if (!widget.floating) return body;
return AnimatedBuilder(
Expand Down
3 changes: 2 additions & 1 deletion fastlane/metadata/android/en-US/changelogs/76.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
* Add zoom shortcuts ([#507](https://github.com/LinwoodDev/Butterfly/issues/507))
* Add name to hand tool selection
* Change remote button dropdown to material 3
* Allow more valid file names
* Fix home page header
* Fix offset in scaling multiple elements ([#506](https://github.com/LinwoodDev/Butterfly/issues/506))
* Allow more valid file names
* Fix opening animation in zoom view

View all changes in the blog: https://linwood.dev/butterfly/2.0.0-beta.12

0 comments on commit 9be3918

Please sign in to comment.