This is a package for styling your UI.
The first (and only feature at the moment) is to create a custom checkbox with your image, colors and radius.
Depend on it
Run this command:
With Flutter:
$ flutter pub add z_ui_plus
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
Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Now in your Dart code, you can use:
import 'package:z_ui_plus/z_ui.dart';
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
});
}
There are more attributes to explore and make it more customised.
bool? disabled;
double? width;
double? height;
Color? backgroundColor;
Color? borderColor;
double? boxRadius;