Commit 295f0400 authored by kevin's avatar kevin

add CHANGELOG and README

parent 7a498f39
Pipeline #48746501 passed with stages
in 9 minutes and 43 seconds
# 1.0.1
- add CHANGELOG.md
- add example/REAMDE.md
# 1.0.0
first version
\ No newline at end of file
# example
A new Flutter project.
## Example with a Stream
## Getting Started
```dart
class MyStreamWidget extends StatelessWidget with StreamHelperMixin {
final Stream<int> periodicStream;
This project is a starting point for a Flutter application.
MyStreamWidget(this.periodicStream);
A few resources to get you started if this is your first Flutter project:
@override
Stream<Widget> buildStream(BuildContext context) {
return periodicStream.map((t) => Text('$t elapsed'));
}
- [Lab: Write your first Flutter app](https://flutter.io/docs/get-started/codelab)
- [Cookbook: Useful Flutter samples](https://flutter.io/docs/cookbook)
@override
Widget get defaultWidget => Text('Waiting stream');
}
```
For help getting started with Flutter, view our
[online documentation](https://flutter.io/docs), which offers tutorials,
samples, guidance on mobile development, and a full API reference.
## Example with a Future
```dart
class MyFutureWidget extends StatelessWidget with FutureHelperMixin {
final Future<int> future;
MyFutureWidget({@required this.future});
@override
Future<Widget> buildFuture(BuildContext context) async {
final value = await future;
return Text('Future result is $value');
}
@override
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]>
homepage: https://gitlab.com/santetis/open_source/async_mixin_helper
version: 1.0.0
version: 1.0.1
environment:
sdk: ">=2.0.0 <3.0.0"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment