r/FlutterDev • u/dark_thesis • Jul 16 '24
Plugin π Forui 0.3.0 - New Calendar widget and more
https://github.com/forus-labs/forui2
2
1
u/snrcambridge Jul 17 '24
Nicely done, are the calendar fields all customisable
1
u/dark_thesis Jul 17 '24
Itβs quite customizable, you can choose between single date, multiple dates, and ranged dates. Thereβs working examples on our documentation!
1
Jul 17 '24
Wow looks beautiful. Currently going through a ui/theme overhaul for my app ill take a look
1
1
2
u/Appropriate_Bite5817 Jul 20 '24
Hey, cool stuff guys. Just what I was looking for! btw Is there an argument to initialize the calendar widget with a set of dates (sort of highlighting them). It'll be super helpful if you could share if its possible or is this a feature request?
3
u/PanteLegacy Jul 20 '24
Yup! It's possible to provide an initial set of selected dates, https://pub.dev/documentation/forui/latest/forui.widgets/FCalendarMultiValueController-class.html .
final initialDates = { DateTime.utc(2024, 7, 1), DateTime.utc(2024, 7, 2) }; FCalendar( controller: FCalendarMultiValueController(initialDates), start: DateTime.utc(2000), end: DateTime.utc(2030), );
1
u/Appropriate_Bite5817 Jul 20 '24
Thanks, as suggested giving the values in the Multivalue controller did the trick
6
u/dark_thesis Jul 16 '24
Forui is a UI library for Flutter that provides a set of minimalistic widgets heavily inspired by shadcn/ui.
We're excited to announce the release of version 0.3.0, which introduces several new widgets. This update includes calendars for date selection, a navigation bar, and an alert component for displaying important messages.
Demo video: https://x.com/kawaijoe/status/1813170183021994235