nibite_ui_elements 0.0.1
nibite_ui_elements: ^0.0.1 copied to clipboard
This package helps in creating data collection forms and navigation pages in Flutter.
nibite UI Elements for Flutter #
Description #
This package helps in creating data collection forms and navigation pages in Flutter, this is an early version of the project, so there is still a lot to come.
Widgets #
NibiteSpinner
- Single spinner field
Use #
Setup
To use this package, add nibite_ui_elements
as a dependency in your pubspec.yaml
file.
No specific setup required: only install the dependency and use :)
dependencies:
flutter:
sdk: flutter
nibite_ui_elements: ^0.0.1
Basic use
import 'package:nibite_ui_elements/nibite_spinner.dart';
//...
int quantity = 0;
//...
Row(
children: [
NibiteSpinner(
initialValue: 1,
resultValue: (value) {
setState(() {
quantity = value;
});
},
)
],
),
Specific uses
import 'package:nibite_ui_elements/nibite_spinner.dart';
//...
int quantity = 0;
//...
Row(
children: [
NibiteSpinner(
initialValue: 1,
sufix: ' un.',
style: const NibiteSpinnerStyle(
color: Colors.white,
buttonColor: Colors.yellow,
buttonTextColor: Colors.black,
buttonRemovableColor: Colors.red,
buttonRemovableTextColor:Colors.white,
boxShadow: [
BoxShadow(
color: Colors.black45,
spreadRadius: 1,
blurRadius: 2,
),
],
),
resultValue: (value) {
setState(() {
quantity = value;
});
},
)
],
),