swipeable_button_flutter

Creator: coderz1093

Last updated:

0 purchases

swipeable_button_flutter Image
swipeable_button_flutter Images

Languages

Categories

Add to Cart

Description:

swipeable button flutter

Swipeable Button View Flutter #
Create attractive swipeable button view in flutter using few simple steps. Very attractive and very easy to use.

Platform Support #



Android
iOS
MacOS
Web
Linux
Windows




✔️
✔️
✔️
✔️
✔️
✔️



##Use this package as a library
Depend on it
Run this command:
With Dart:

$ dart pub add swipeable_button_flutter

copied to clipboard
With Flutter:

$ flutter pub add swipeable_button_flutter

copied to clipboard
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
swipeable_button_flutter: ^0.0.3

copied to clipboard
Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Example #

class _MyHomePageState extends State<Example> {
@override
Widget build(BuildContext context) {
// This method is rerun every time setState is called, for instance as done
// by the _incrementCounter method above.
//
// The Flutter framework has been optimized to make rerunning build methods
// fast, so that you can just rebuild anything that needs updating rather
// than having to individually change instances of widgets.

return Scaffold(
appBar: AppBar(
// Here we take the value from the MyHomePage object that was created by
// the App.build method, and use it to set our appbar title.
title: Text(widget.title!),
),
body: Center(
// Center is a layout widget. It takes a single child and positions it
// in the middle of the parent.
child: SwipeButton(
text: "Submit",
onSwipeCallback: () {
print("Swiped - Perform some operation");
},
height: 80,
),
),
// floatingActionButton: FloatingActionButton(
// onPressed: _incrementCounter,
// tooltip: 'Increment',
// child: Icon(Icons.add),
// ), // This trailing comma makes auto-formatting nicer for build methods.
);
}
}

copied to clipboard
License #
MIT License
Copyright (c) 2022 Dheeraj Singh Bhadoria
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.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.