refactor: Avoid unnecessary bool comparison
This commit is contained in:
parent
d08364688e
commit
1cd3a91037
15 changed files with 26 additions and 25 deletions
|
|
@ -110,7 +110,7 @@ class ImageViewerController extends State<ImageViewer> {
|
|||
|
||||
/// Go back if user swiped it away
|
||||
void onInteractionEnds(ScaleEndDetails endDetails) {
|
||||
if (PlatformInfos.usesTouchscreen == false) {
|
||||
if (!PlatformInfos.usesTouchscreen) {
|
||||
if (endDetails.velocity.pixelsPerSecond.dy >
|
||||
MediaQuery.sizeOf(context).height * maxScaleFactor) {
|
||||
Navigator.of(context, rootNavigator: false).pop();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue