flutter_async_widgets

style: lint

Convenience widgets for working with asynchronicity

AsyncBuilder

class ExampleWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return AsyncBuilder.single<String>(
      Future.delayed(const Duration(seconds: 3), () => 'String from the future'),
      onData: (context, data) => Center(child: Text(data)),
    );
  }
}

Libraries

flutter_async_builder
flutter_async_widgets