Skip to content

Commit

Permalink
v4.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jogboms committed Nov 30, 2019
1 parent 6e61f9e commit 14e1141
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 6 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,26 @@

A collection of loading indicators animated with flutter. Heavily inspired by @tobiasahlin's SpinKit.

## 4.1.0

- Introduces a new SpinKit [SpinKitSquareCircle]
- Introduces `const` SpinKits
- Improve code quality across all spinners

### Before

```dart
final spinkit = SpinKitSquareCircle(color: Colors.white, size: 50.0);
```

### Now, all SpinKits can be initialized as `const`s

```dart
const spinkit = SpinKitSquareCircle(color: Colors.white, size: 50.0);
```

<img src="https://raw.githubusercontent.com/jogboms/flutter_spinkit/master/screenshots/square_circle.gif" width="100px" height="100px">

## 4.0.0

### Feature
Expand Down
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ A collection of loading indicators animated with flutter. Heavily inspired by [@

```yaml
dependencies:
flutter_spinkit: "^4.0.0"
flutter_spinkit: "^4.1.0"
```
### ⚡️ Import
Expand All @@ -27,7 +27,7 @@ const spinkit = SpinKitRotatingCircle(
```

```dart
const spinkit = SpinKitFadingCircle(
final spinkit = SpinKitFadingCircle(
itemBuilder: (_, int index) {
return DecoratedBox(
decoration: BoxDecoration(
Expand All @@ -38,10 +38,8 @@ const spinkit = SpinKitFadingCircle(
);
```

#### As from 4.0.0

```dart
const spinkit = SpinKitFadingCircle(
final spinkit = SpinKitFadingCircle(
color: Colors.white,
size: 50.0,
controller: AnimationController(vsync: this, duration: const Duration(milliseconds: 1200)),
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_spinkit
description: A collection of loading indicators animated with flutter. Heavily inspired by @tobiasahlin's SpinKit.
version: 4.0.0
version: 4.1.0
homepage: https://github.com/jogboms/flutter_spinkit

authors:
Expand Down

0 comments on commit 14e1141

Please sign in to comment.