Open mathaou opened 2 years ago
I experienced a similar problem today, not sure if it's related. I put WindowButtons under a MoveWindow (which enables onDoubleTap) in a Stack. In Flutter, if onDoubleTap is enabled, onTap is delayed for some time (300ms?) to detect double tap. https://github.com/flutter/flutter/issues/110300
Stack(children: [
Row(
children: [
Expanded(
child: Tabbar()),
const WindowButtons()
],
),
MoveWindow(),
])
MoveWind
Noticed the same exact thing
Thank you all for reporting. Will investigate.
What OS are you using for testing?
What OS are you using for testing?
I used Windows.
yeah I experienced the same today, also on Windows OS btw double tapping the app bar is "instant" and tapping the buttons is with a slight delay, I will try and take the buttons out of the moveWindow widget for now
yeah I experienced the same today, also on Windows OS btw double tapping the app bar is "instant" and tapping the buttons is with a slight delay, I will try and take the buttons out of the moveWindow widget for now
Just use the stack as previously explained by @ngugcx
yeah I experienced the same today, also on Windows OS btw double tapping the app bar is "instant" and tapping the buttons is with a slight delay, I will try and take the buttons out of the moveWindow widget for now
Just use the stack as previously explained by @ngugcx
yes was exactly what I did 👍
is there any news or estimation on this issue? workaround aint perfect for my needs sadly
I have the same issue, developed multiple apps and experienced it in all of them, any chance we're getting a fix anytime soon ?
actions: MoveWindow( child: Row( children: [ const Spacer(), MinimizeWindowButton( colors: buttonColors, ), MaximizeWindowButton( colors: buttonColors, ), CloseWindowButton( colors: buttonColorsExit, ) ], ), ),
A simple solution is to put the three window buttons in the container, set the container color to transparent, and the colored container will intercept the onDoubleTap() of MoveWindow() below
the issue is something related to MoveWindow() widget. when i added the MoveWindow() on top of the window buttons using Stack() it made them slow.
Flutter 3.1.0-0.0.pre.1887 (upgraded from 3.0.1 to see if latest master could help)
With a setup like this
Using any of these operations (or calling the same functions from the window_manager plugin) has a pretty jarring delay before the operation completes. On the run-of-the-mill native app all of those are practically instantaneous, but profiling the code shows me that I'm spending close to 70ms getting a GestureDetector to service an action, and then pass that through some kind of ffi that needs bytestreams or some other binary blob to function. My gut feeling is that there isn't much that can be done to speed this up, but I thought I'd make an issue in case this is thoroughly a "me" problem and I'm just doing something wrong.