From 1e15afdf717f9aec600c07d48f2264a0e659f699 Mon Sep 17 00:00:00 2001 From: Devon Carew Date: Wed, 30 Mar 2016 00:14:03 -0700 Subject: [PATCH] 2.0.0 --- changelog.md | 2 +- example/flutter_example/README.md | 6 +++--- example/flutter_example/lib/main.dart | 2 ++ pubspec.yaml | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/changelog.md b/changelog.md index 6b33658..5343a35 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,6 @@ # Changelog -## unreleased +## 2.0.0 - added a `usage` implementation for Flutter (uses conditional directives) - removed `lib/usage_html.dart`; use the new Analytics.create() static method - removed `lib/usage_io.dart`; use the new Analytics.create() static method diff --git a/example/flutter_example/README.md b/example/flutter_example/README.md index 1661257..7608a60 100644 --- a/example/flutter_example/README.md +++ b/example/flutter_example/README.md @@ -1,7 +1,7 @@ -Example of usage package with Flutter -===================================== +# Example of usage package with Flutter -To run the Flutter example, ensure that the pubspec.yaml points to your Flutter path. Then run +To run the Flutter example, ensure that the pubspec.yaml points to your Flutter +path. Then run: ``` pub get diff --git a/example/flutter_example/lib/main.dart b/example/flutter_example/lib/main.dart index 6dd1b04..9a34065 100644 --- a/example/flutter_example/lib/main.dart +++ b/example/flutter_example/lib/main.dart @@ -22,6 +22,7 @@ Future main() async { class FlutterDemo extends StatefulWidget { FlutterDemo(this.ga); Analytics ga; + @override State createState() => new _FlutterDemoState(); } @@ -41,6 +42,7 @@ class _FlutterDemoState extends State { }); } + @override Widget build(BuildContext context) { return new Scaffold( appBar: new AppBar( diff --git a/pubspec.yaml b/pubspec.yaml index 7a02fad..1e6d3e0 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -3,7 +3,7 @@ # BSD-style license that can be found in the LICENSE file. name: usage -version: 2.0.0-dev +version: 2.0.0 description: A Google Analytics wrapper for both command-line, web, and Flutter apps. homepage: https://github.com/dart-lang/usage author: Dart Team