Commit 295f0400 authored by kevin's avatar kevin


parent 7a498f39
Pipeline #48746501 passed with stages
in 9 minutes and 43 seconds
# 1.0.1
- add
- add example/
# 1.0.0
first version
\ No newline at end of file
# example
A new Flutter project.
## Example with a Stream
## Getting Started
class MyStreamWidget extends StatelessWidget with StreamHelperMixin {
final Stream<int> periodicStream;
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
Stream<Widget> buildStream(BuildContext context) {
return => Text('$t elapsed'));
- [Lab: Write your first Flutter app](
- [Cookbook: Useful Flutter samples](
Widget get defaultWidget => Text('Waiting stream');
For help getting started with Flutter, view our
[online documentation](, which offers tutorials,
samples, guidance on mobile development, and a full API reference.
## Example with a Future
class MyFutureWidget extends StatelessWidget with FutureHelperMixin {
final Future<int> future;
MyFutureWidget({@required this.future});
Future<Widget> buildFuture(BuildContext context) async {
final value = await future;
return Text('Future result is $value');
Widget get defaultWidget => Text('Waiting future result');
\ No newline at end of file
name: async_helper_mixin
description: A new Flutter project.
description: Some helper to deal with async Widget like FutureBuilder and StreamBuilder.
author: Kevin Segaud <[email protected]>
version: 1.0.0
version: 1.0.1
sdk: ">=2.0.0 <3.0.0"
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment