futuristic icon indicating copy to clipboard operation
futuristic copied to clipboard

Can I cascade futuristic widgets?

Open ride4sun opened this issue 3 years ago • 0 comments

Should that work:

  Widget build(BuildContext context) => new BlocProvider(
        bloc: appBloc,
        child: new LoggingBlocProvider(
          bloc: loggingBloc,
          child: Futuristic(
            autoStart: true,
            futureBuilder: () => appBloc.initBeforeUIStart(),
            busyBuilder: (context) => Text('busy1'),
            onError: (error, retry) => Text('error1'),
            onData: (data) => Futuristic(
                autoStart: true,
                futureBuilder: () => initBloc(),
                onData: (data) => _buildMain(context),
                onError: (error, retry) => Text('error2'),
                busyBuilder: (context) => _buildMain(context)),
          ),
        ),
      );

ride4sun avatar Oct 07 '20 21:10 ride4sun