nank1ro / flutter-shadcn-ui

shadcn-ui ported in Flutter. Awesome UI components for Flutter, fully customizable.

Home Page:https://mariuti.com/shadcn-ui

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Proposal : Editable animation duration

LeadcodeDev opened this issue · comments

Hello,

Thank you for your work.

I'd like to suggest an improvement to the speed of execution of animations, particularly on the Popover and Select components.

It would be interesting to allow the transition-duration to be modified so that we can make the UI more or less dynamic.

ShadSelect<String>(
  animationDuration: Duration(),
  decoration: const ShadDecoration(
    color: Colors.white,
  ),
  placeholder: const Text('Select a fruit'),
    options: fruits.entries
      .map((e) => ShadOption(value: e.key, child: Text(e.value)))
      .toList(),
  selectedOptionBuilder: (context, value) => Text(fruits[value]!),
),

Looking forward to seeing you,

Duplicate of #73
It's already feasible, see how I commented in the other issue