Skip to content

mejdi14/flutter_multi_search

Repository files navigation

Welcome to flutter mutli search 👋

License: MIT gitmoji-changelog

🎨Credits

✨ Demo

Basic usage

MultiSearchView(
              onSelectItem: (value) {
                /// when you swith from an item to another
              },
              onSearchComplete: (value) {
                /// when you hit the keyboard search button
              },
              onDeleteAlternative: (value) {
                /// when you delete and item and it switchs to another item if exist
              },
              onItemDeleted: (value) {
                /// when you delete an item
              },
              onSearchCleared: () {
                /// when all search items are cleared
              },
            )

Options

choosing the indicator shape (default is line shape):

searchIndicatorShape: SearchIndicatorShape.dot
/// or
searchIndicatorShape: SearchIndicatorShape.line

indicator color:

indicatorColor: Colors.purple

changing the width (default is screen size width):

width: 150

changing the icon color:

iconColor: Colors.blue

changing the delete item icon color:

removeItemIconColor: Colors.black

changing the delete item icon color:

removeItemIconColor: Colors.black

setting the hint text:

inputHint: 'type your text'

... please check the class code for more options

🤝 Contributing

Contributions, issues and feature requests are welcome.
Feel free to check [issues page] if you want to contribute.

Author

👤 Mejdi Hafiane

Show your support

Please ⭐️ this repository if this project helped you!

📝 License

Copyright 2021 Mejdi hafiane

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