0 purchases
z ui plus
Z UI PLUS #
This is a package for styling your UI.
Features #
The first (and only feature at the moment) is to create a custom checkbox with your image, colors
and radius.
Getting started #
Depend on it
Run this command:
With Flutter:
$ flutter pub add z_ui_plus
copied to clipboard
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
z_ui_plus: ^0.0.4
copied to clipboard
Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it #
Now in your Dart code, you can use:
import 'package:z_ui_plus/z_ui.dart';
copied to clipboard
Usage #
You can use the package with the following code.
@override
Widget build(BuildContext context) {
return ZUI.zCheckbox(
initialSelected: false,
asset: Image.asset("assets/example.png"),
onChanged: (value) {
//Something to do with the value
});
}
copied to clipboard
Additional information #
There are more attributes to explore and make it more customised.
bool? disabled;
double? width;
double? height;
Color? backgroundColor;
Color? borderColor;
double? boxRadius;
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.