INNER CODE UNIT · Dart

TestController

EmadBeltaje/flutter_getx_template · integration_test/my_widget_animator_test.dart:12

class TestController extends GetxController {
  Rx<ApiCallStatus> apiCallStatus = ApiCallStatus.loading.obs;
}

class TestView extends StatelessWidget {
  const TestView({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: Obx(
             () =>
               MyWidgetsAnimator(
                apiCallStatus: Get.find<TestController>().apiCallStatus.value,
                animationDuration: const Duration(seconds: 2),
                 loadingWidget: () => const Text('Loading',key: ValueKey('Loading'),),

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…