I am building a flutter application for web and desktop. I have used navigation rail for routing, but i can't figure out how to add a hover effect when the mouse is over a particular rail destination. There is a property to change the color depending upon which rail is being selected but i want to have a hover effect for the rail as well. How can i achieve this in flutter ?
Any help will be appreciated. Thank you.
Related
Can anyone suggest to me how can I build a pull-down appbar. I searched the whole net but can't find any idea regarding this. It would be great if anyone could guide or suggest to me to build the appbar.
Edit:-
Many developers are saying to use SliverAppBar. SliverAppBar basically collapses the app bar when we scroll up the listview or any other widget, whereas I want an app bar that pulls down i.e when we tap the app bar and scroll it down only the app bar grows on top of the body. So basically when we navigate to the home screen the app bar should look like the second referred image i.e it must be closed. But we can pull down that appbar to view the hidden contents of the appbar. I am attaching an image for reference.
I Think what you mean what pull down App is an Appbar that expands try.
the silver Appbar
https://youtu.be/mSc7qFzxHDw
I have an app for mobile that I would like to adapt for the web. The bottom navigation bar is not looking good for web and I have implemented responsive UI for the rest of the app screens.
Is there a way to make the horizontal bottom navigation bar, vertical for web/desktop layouts or a package to do the same?
You can control the size and change the widget.
check this example
or you can use
LayoutBuilder
Check this link for LayoutBuilder
I am learning flutter, and I found myself with the task of creating a floating button, that by minimizing the application the button is visible and overlaps any application, is it possible to create this functionality in flutter?
You should use Scaffold and there's a parameter called floatingActionButton. There you can add a button and it definitely won't overlay anything. You should also search for SafeArea and Listview/SingleChildScrollView. These are great widgets for avoid overlays. Flutter has a great documentation so you can always look up a widget in google and there will be always something.
I am using SliverAppBar widget with some background image behind it. Since the image I will load will be dynamic, sometimes it can have light colors and can cause the back button (or any other action button) to be hardly visible.
As you can see in the screenshot below, I gave a little shadow to the app bar title using TextStyle & Shadow widgets, so it is much more visible than the back button.
You can try use "elevation" here is the Flutter link for more clarification: https://www.google.com/url?sa=t&source=web&rct=j&url=https://api.flutter.dev/flutter/material/SliverAppBar/elevation.html&ved=2ahUKEwiEpfiIn4TwAhWUH7cAHY9ECIwQFjACegQIBRAC&usg=AOvVaw0wCdyaVv3EA8ulVXXvaVMu
asking for advice on what I need to search for?
I need something like side navigation but when I open the container it can not overlay the header and button navigations. Chek picture example. Thanks.
So far I understand that Drawer will not help..