feduke-nukem / flutter_easy_dialogs

Easy dialogs library for Flutter
https://pub.dev/packages/flutter_easy_dialogs
MIT License
12 stars 0 forks source link

[Feature]: Precise positioning of a dialog #23

Closed DevTello closed 6 months ago

DevTello commented 6 months ago

What is your idea?

Hi, trying to make a minimized video player using this package, would be nice to be able to position a dialog precisely on the screen. P.S.: is it possible to make it draggable also, or did I choose the wrong instrument for my purpose?) If yes, maybe you have an idea, where to look...

Code of Conduct

feduke-nukem commented 6 months ago

Hello @DevTello

It is impossible to use this package in that way for now but it is a really good feature to implement.

I will to release it in a week or two

DevTello commented 6 months ago

Thank you very much, good sir! You always respond so fast, it's amazing! Be healthy and wealthy)

feduke-nukem commented 6 months ago

Hello, @DevTello

You may try it out in the 3.2.0 version.

Just apply draggable() operator to your dialog like so:

final content = Container(
  height: 150.0,
  color: Colors.blue[900],
  alignment: Alignment.center,
  child: Text(
    _selectedPosition.name,
    style: const TextStyle(
      color: Colors.white,
      fontSize: 30.0,
    ),
  ),
);

content.positioned().draggable().show();