import 'package:fis_ui/define.dart'; import 'package:flutter/widgets.dart'; import 'package:get/get.dart'; /// for temporary preview only!!! class QuickFWidget extends StatelessWidget implements FWidget { const QuickFWidget(this.child, {Key? key}) : super(key: key); final Widget child; @override Widget build(BuildContext context) => child; } typedef FWidgetCallback = FWidget Function(); typedef AsyncVoidCallback = Future Function(); class FObx extends Obx implements FWidget { FObx(FWidgetCallback builder) : super(builder); } abstract class FisView extends GetView implements FWidget { const FisView({Key? key}) : super(key: key); @override FWidget build(BuildContext context); } class FisBuilder extends GetBuilder implements FWidget { const FisBuilder({ Key? key, T? init, bool global = true, required GetControllerBuilder builder, bool autoRemove = true, bool assignId = false, Object Function(T value)? filter, String? tag, void Function(GetBuilderState state)? initState, dispose, didChangeDependencies, Object? id, void Function(GetBuilder oldWidget, GetBuilderState state)? didUpdateWidget, }) : super( key: key, init: init, global: global, builder: builder, autoRemove: autoRemove, assignId: assignId, initState: initState, filter: filter, tag: tag, dispose: dispose, id: id, didChangeDependencies: didChangeDependencies, didUpdateWidget: didUpdateWidget, ); }