de-morgan / flutter-contextual-action-bar Goto Github PK
View Code? Open in Web Editor NEWA Contextual action bar workaround for flutter
License: MIT License
A Contextual action bar workaround for flutter
License: MIT License
Flutter 2 is here!
Please consider migrating to null-safety.
How can I know that the contextual appbar is in actionmode and how to disable programatically?
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.
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.
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);
},
);
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.