flet icon indicating copy to clipboard operation
flet copied to clipboard

feature: CarouselView Widget for Flet

Open osamalzabidi opened this issue 9 months ago • 9 comments

Duplicate Check

  • [x] I have searched the opened issues and there are no duplicates

Describe the requested feature

Title: Add Material Design 3 CarouselView widget with multiple layout modes

Description: Requesting the implementation of a CarouselView widget that follows Material Design 3 specifications for carousel layouts. This widget would provide a scrollable list of items with support for four distinct layout modes:

  • Uncontained (default): Items scroll to the edge of the container, similar to a uniform ListView
  • Multi-browse: Displays at least one large, medium, and small item simultaneously
  • Hero: Shows at least one large and one small item at a time
  • Full-screen: Presents edge-to-edge items that scroll vertically

This widget would enable developers to create modern, responsive carousels that match Material Design 3 standards while maintaining Flet's simplicity and cross-platform compatibility.

Best regard.

Suggest a solution

No response

Screenshots

No response

Additional details

No response

osamalzabidi avatar Feb 10 '26 02:02 osamalzabidi

I already created a dart wrapper and it is working on my pc, I Don't know how to share with the community

HappyCoder256 avatar Mar 01 '26 14:03 HappyCoder256

I already created a dart wrapper and it is working on my pc, I Don't know how to share with the community

Great Job, I think you need to read the documentation that Flet provided on how publish third-party widgets (extend Flet) https://docs.flet.dev/extend/user-extensions/#prerequisites

osamalzabidi avatar Mar 02 '26 06:03 osamalzabidi

But this widget is a built-in Flutter Control!, so I think you need to do a PR to merge your code with Flet built-in controls. You don't need to do a new extension? Just define the Python control file and Flutter Control.

osamalzabidi avatar Mar 02 '26 06:03 osamalzabidi

But this widget is a built-in Flutter Control!, so I think you need to do a PR to merge your code with Flet built-in controls. You don't need to do a new extension? Just define the Python control file and Flutter Control.

But how would people with lower flet versions like me who uses 0.28.3 how would i be helped

HappyCoder256 avatar Mar 06 '26 11:03 HappyCoder256

But this widget is a built-in Flutter Control!, so I think you need to do a PR to merge your code with Flet built-in controls. You don't need to do a new extension? Just define the Python control file and Flutter Control.

But how would people with lower flet versions like me who uses 0.28.3 how would i be helped

I suggest that you upgrade to the latest version, it has big changes and bugfixes, e.g., mobile app crash after back, etc Also, you see clear and good docs for extend flet using Flutter widget, you actually see one of the new controls that have been added in the past few days, "PageView", to see how flet integrate new Flutter control/widget to the base code!

And thanks to you for trying to help the community and me!

osamalzabidi avatar Mar 06 '26 18:03 osamalzabidi

The problem i have with the new flet version is that i have been working on my project since version 0.25.1, so migrating it will be another huge task cause when I try to run that same code with the latest version, it is not displaying anything.

HappyCoder256 avatar Mar 08 '26 15:03 HappyCoder256

The problem i have with the new flet version is that i have been working on my project since version 0.25.1, so migrating it will be another huge task cause when I try to run that same code with the latest version, it is not displaying anything.

The same problems, I also have an app that I'm writing in version 0.28 at the latest update, so I'm wondering how I can start migration 😅

I think the only thing you can help with is to know how to write a third-party in the current version you work with, as I recommended you to start using the latest version (0.80.x) because this is the stable version and it will be at short time the version (1.0)

osamalzabidi avatar Mar 09 '26 13:03 osamalzabidi

I've now installed flet 0.82. So I'll be notifying u, don't close this.

HappyCoder256 avatar Mar 10 '26 19:03 HappyCoder256

Then @wangneal , Do what you know.

HappyCoder256 avatar Jun 01 '26 14:06 HappyCoder256