Giter VIP home page Giter VIP logo

flutter-contextual-action-bar's People

Contributors

damato3 avatar de-morgan avatar lazicah avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

flutter-contextual-action-bar's Issues

Does not handle back button

After Selecting some widgets If the user press back button in home page he exits the app instead the expected behaviour is it should the normal app bar just like if unselected widgets are zero.

ActionMode dismissed callback

Hi,

First of all thank you for such a nice plugin. It does the job pretty well.

In one of my use case, I need to hide/unhide a view based on ActionMode enabled/disabled status. I tried to figure it out but could not able to identify if the ActionMode is disabled. Though by using the CounterBuilder I identified that the ActionMode is enabled when itemCount >= 0

Looking forward for your help.

Thanks in advance.

ContextualAction not customizable

The current implementation has no way to customize the inkwell in the action
I had to do this manually to get a custom widget with a good inkwell.
I had to extend your ContextualAction and install provider to my main project. to get this to work.

class CustomContextualAction<T> extends ContextualAction<T> {
  static void _dummyItemHandler(_) {}

  final Widget Function(
    BuildContext context,
    List<T> items,
    Function disableActionMode,
  ) builder;
  const CustomContextualAction({required this.builder, super.key})
      : super(itemsHandler: _dummyItemHandler, child: const SizedBox());

  @override
  Widget build(BuildContext context) {
    return provider.Consumer<ItemsController<T>>(
      builder: (BuildContext ctx, ItemsController<T> value, Widget? child) {
        void disableActionMode() {
          ActionMode.disable<T>(ctx);
        }

        return builder(context, value.items, disableActionMode);
      },
    );
  }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.