Last updated:
0 purchases
flutter selector
flutter_selector #
Language: English | 简体中文
Intro #
This is a customizable Flutter selector that allows you to customize the interface style, support single selection, multiple selection, and even linked selection between multiple lists.
Features #
Support custom UI styles
Support single list selector
Support multiple list selectors
Support linked selection between multiple list selectors
Support multiple selection in single list selector
Preview #
Get started #
Install #
Add the flutter_selector package to your pubspec dependencies.
Usage #
Initialize #
Selector.init(
height: 300,
radius: 8,
itemExtent: 48,
padding: 12,
textSize: 14,
textLeft: '取消',
textRight: '确定',
textColor: Colors.black54,
textColorLeft: Colors.black26,
textColorRight: Colors.black,
lineColor: Colors.white24,
backgroundColor: Colors.grey);
copied to clipboard
Call selector (single) #
Selector.showSingleSelector(context,
list: list, callBack: (selectorItem, position) {});
copied to clipboard
Call selector (double) #
Selector.showDoubleSelector(context,
listLeft: listLeft,
listRight: listRight,
callBack: (selectorItemLeft, positionLeft, selectorItemRight,
positionRight) {});
copied to clipboard
Call selector (multiple) #
Selector.showMultipleSelector(context,
list: list,
listPosition: _positions,
callBack: (selectorItems, positions) {});
copied to clipboard
Call selector (multiple with linked selection) #
Selector.showMultipleLinkSelector(context,
list: list,
listPosition: _positionsLink,
callBack: (selectorItems, positions) {});
copied to clipboard
Call selector (support multiple selection) #
Selector.showSingleMultipleChoiceSelector(context,
list: list, callBack: (List<SelectorItem> selectorItems) {});
copied to clipboard
License #
The MIT License (MIT) Copyright (c) 2022 WangYongQi
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.