Member-only story

Flutter Flow: Migrating the Carousel Menu to use data types

Christopher Coffee
6 min readNov 19, 2023

Previously I walked through the process of adding a Carousel Menu in Flutter using a custom widget

If you remember, we used a JSON array of objects for each item. Since then, Flutter Flow has added the ability to create custom data types. This approach is also more user-friendly for Flutter Flow beginners.

Creating a Carousel Menu Item data type

First, let’s create a data type by clicking on the Data Types menu item on the left.

Next, click the orange plus button to create a new data type. Let’s give it the name CarouselMenuItem

Now let’s add three String fields title, route, and imageUrl

--

--

No responses yet