vibe_ui 0.0.1+0.2
vibe_ui: ^0.0.1+0.2 copied to clipboard
A self-use ui system
Self-use UI components, have time to update, there is a need to take
Features #
Getting started #
1.UI 2.form 3.dio http
Usage #
// init dio
configDio(
getJsonSingleType: ConvertJson.getJsonSingleType,
getListJsonType: ConvertJson.getListJsonType,
httpBaseEntity:
HttpBaseEntity(code: '1', msg: "message", data: 'result'),
commonErrorCallback: (code, msg) {
// Toast.showCustomToast(context, msg);
},
baseUrl: "");
VBScaffold(
body: Column(
children: [
VBTransition<Decoration>(
child: Container(
width: 100,
height: 100,
),
type: TransitionType.decoratedBox,
duration: Duration(seconds: 2),
tween: Tween<Decoration>(
begin: BoxDecoration(color: Colors.black),
end: BoxDecoration(color: Colors.redAccent)),
init: (con) {
_controller = con;
_controller?.reset();
},
),
VBButton(
text: '222',
async: false,
onPressed: () async {
menuController.close();
},
),
VBFormField(
onChanged: (v){},
validator: (v){
return ValidateUtils.validateEmail(context, v);
},)
],
))
Additional information #
Self-use UI components, have time to update, there is a need to take