circular reveal theme switcher like telegram in flutter - flutter

I am using DayNight theme in my application. And I have a button that changes the theme. In Telegram app there is a beautiful reveal animation that changes the theme without restarting activity or something like that. How to achieve this in flutter? and also the theme change should be persistent using shared preference and provider.
i want to achieve something like this:-

Here is what you are looking for

Related

Is there a widget on flutter that can pop up above bottom navigation, with gradient background?

I inherited a project in flutter and I need to create or use a widget that will allow me to display information throughout the entire app. The graphic design that I want to follow has a background with a gradient of colors.
My question is, is there any widget that can appear just above a browser menu at the bottom of the application, that can comply with this type of design?
I have tried with snackbar but I have not found a way to put the gradient background and I tried with flushbar but when it opens (and allows the user to close it) it does not allow navigation.
I've tried "getx" but it does not go well with the rest of the app, because its an already big application with materialApp.
I'm expecting something that can act as a snackbar but have gradient background.

Flutter inappwebview not using system theme

I'm using inappwebview to show my webpage in-app (currently using google to test), however it seems to not use my system theme. ie. when I toggle my emulator device from light to dark mode, google stays in light mode.
It's an obvious thing that the Webview part will not use your theme as it has its separate from Flutter App.
We are just showing the webpage in Webview so indirectly it is not a part of our app.
Even if you want to achieve this kind of thing, you can reload the URL when you change the theme in the app.
Edited:
I think you can do something like this when you change the theme: https://stackoverflow.com/a/70195085/1318946

How to make floating overlay widget, looks like facebook chat head in flutter?

How to make floating overlay widget, looks like facebook chat head in flutter??
Flutter floating overlay widget
i need help guys, What i do now?
What i'am doing picture
You can create a draggable chat button by checking below link. But it will be inside the application.
Inside app - https://medium.flutterdevs.com/draggable-floating-action-button-in-flutter-2149a7e47f06
If you want to draw the draggable view outside the application, check https://pub.flutter-io.cn/packages/system_alert_window plugin. Here, you need to do minor tweeks.
Apart from this, other approach is to write the code in native and access it to flutter via method channel
For native - https://medium.com/#kevalpatel2106/create-chat-heads-like-facebook-messenger-32f7f1a62064

Change Background Image in Flutter according to theme

I have different pages, and one FloatingActionBar, whensoever I am clicking on it, the theme of the application is getting changed. But I also want to change the background image of the app. How can I do that?

Flutter: How to change theme from runtime?

I have 3 themes based on colours like a red theme, blue theme and a dark theme as well. I want to change the theme of the app while the app is running.
I want to show an alert dialog from where the user can select the color of the theme.
When you present an AlertDialog (using await showDialog()), there is a Future<dynamic> return value. So, have some buttons in the dialog that lets the user choose their theme. Once the user is done choosing the theme, return the chosen theme using Navigator.of(context).pop(selectedTheme).
Wait for this value wherever you're showing the dialog like final userSelectedTheme = await showDialog(...). Once you have the new value, then update whatever state model is holding the theme and your app should update accordingly.
Since themes are generally at the top-level of the app, you'll probably need something more than just stateful widgets if you aren't using anything else. I'd look into Provider if you aren't familiar with anything else:
https://pub.dev/packages/provider