Start a Project

Custom Drawer For Flutter TV App

In Flutter, We can make the Custom Drawer for tv same in the same way as for mobile apps, with the help of  Scaffold and Drawer Widget.In apps, there are two options for navigation : Tabs and Drawer.
We can use the Drawer widget in combination with a Scaffold to create a layout with a Material Design drawer.

Custom Drawer For Flutter TV App

We can create a simple drawer by using a scaffold and passing list item to it as shown in below code.

Read more about our Flutter app development services.

For custom drawer we have to write some extra piece of code. Let’s check the below sample to customise Drawer for Smart TV App.

Sample App

In this app we are going to create a drawer which will show some different User Interface compare to normal drawer.

Add the below dependency.

Main.dart

MyHomePage.dart

DrawerItem.dart

Below file is use as model to create icons and label for for drawer items.

DrawerItem

List of drawer items

CustomNavigationDrawer.dart

Result

Finally, We can run the project and check the output.

https://mobikul.com/wp-content/uploads/2023/11/Screen-Recording-2023-11-30-at-1.50.48-PM.mov

Conclusion

We checked, how we can create a custom drawer for tv app.
Please follow the link to check more about drawer.

Thanks for reading this Article. Feel free to share your ideas or any feedback.

Exit mobile version