From ee5eacb867bdec0613fc2a93c53f56e661380226 Mon Sep 17 00:00:00 2001 From: David Date: Tue, 9 Apr 2019 07:21:53 +0200 Subject: [PATCH] build: update readme and bump version --- CHANGELOG.md | 4 ++++ example/README.md | 36 ++++++++++++++++++++++++++++-------- example/pubspec.lock | 2 +- pubspec.yaml | 2 +- 4 files changed, 34 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0be6ca7..e4717bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## [1.0.1] - 2019-04-09 + +- Update README.md in the example. + ## [1.0.0] - 2019-04-08 - Initial release. diff --git a/example/README.md b/example/README.md index 6d17fb3..430bf6e 100644 --- a/example/README.md +++ b/example/README.md @@ -1,16 +1,36 @@ # example -A new Flutter project. +A basic example on how to use the widget circular_slider in Flutter. ## Getting Started -This project is a starting point for a Flutter application. +```dart +import 'package:flutter/material.dart'; -A few resources to get you started if this is your first Flutter project: +import 'package:flutter_circular_slider/flutter_circular_slider.dart'; -- [Lab: Write your first Flutter app](https://flutter.io/docs/get-started/codelab) -- [Cookbook: Useful Flutter samples](https://flutter.io/docs/cookbook) +void main() => runApp(MyApp()); -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. +class MyApp extends StatelessWidget { + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData( + primarySwatch: Colors.blue, + ), + home: MyHomePage(), + ); + } +} + +class MyHomePage extends StatelessWidget { + @override + Widget build(BuildContext context) { + return Scaffold( + backgroundColor: Colors.blueGrey, + body: Center( + child: Container(child: CircularSlider(100, 0, 20)), + )); + } +} +``` diff --git a/example/pubspec.lock b/example/pubspec.lock index 7b64a01..5514dfd 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -40,7 +40,7 @@ packages: path: ".." relative: true source: path - version: "1.0.0" + version: "1.0.1" flutter_test: dependency: "direct dev" description: flutter diff --git a/pubspec.yaml b/pubspec.yaml index d6e346c..2d74605 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_circular_slider description: A customizable widget to select intervals in a circular line. -version: 1.0.0 +version: 1.0.1 author: David Anaya homepage: https://github.com/davidanaya/flutter-circular-slider repository: https://github.com/davidanaya/flutter-circular-slider