https://github.com/ckdevrel/FeedbackWidget
A new Flutter package project for feedback view.
https://github.com/ckdevrel/FeedbackWidget
Last synced: 11 months ago
JSON representation
A new Flutter package project for feedback view.
- Host: GitHub
- URL: https://github.com/ckdevrel/FeedbackWidget
- Owner: ckdevrel
- License: other
- Created: 2019-07-14T16:12:23.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-20T10:43:08.000Z (over 6 years ago)
- Last Synced: 2024-11-03T21:34:02.117Z (over 1 year ago)
- Language: Dart
- Size: 14.6 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# feedback_widget
A new Flutter package project for feedback view.
## How to use?
```dart
FeedbackView(listener: (Status status) {},);
```
```dart
FeedbackView(
iconSize: 48,
iconPadding: EdgeInsets.all(16),
listener: (Status status) {},
);
```
```dart
FeedbackView(
iconSize: 48,
iconPadding: EdgeInsets.all(16),
listener: (Status status) {},
negativeIcon: Icons.flight_takeoff,
neutralIcon: Icons.flight,
positiveIcon: Icons.flight_land,
negativeText: 'Take off',
neutralText: 'Stable',
positiveText: 'Landing',
defaultText: 'Flight Status',
);
```
## Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
```dart
dependencies:
feedback_widget: ^0.0.6
```
2. Install it
You can install packages from the command line:
with Flutter:
```dart
$ flutter pub get
```
Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
3. Import it
Now in your Dart code, you can use:
```dart
import 'package:feedback_widget/feedback_widget.dart';
```


