Skip to content

Commit 170f1da

Browse files
committed
0.0.2
1 parent c78d511 commit 170f1da

File tree

5 files changed

+12
-18
lines changed

5 files changed

+12
-18
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# wp_pivot_flutter
22

33
A Flutter package inspirred from Windows Phone Style Pivot Tabs
4-
![Pivots in action](showcase/ezgif-4-446097008731.gif)
4+
![Pivots in action](https://github.com/Chinmay-KB/wp_pivot_flutter/blob/master/showcase/ezgif-4-446097008731.gif)
55

66

77
## Example
88

99
The current plugin uses GlobalKey for accessing child function. A controller will be implemented in the next update.
1010

11-
```
11+
```dart
1212
import 'package:wp_pivot_flutter/wp_pivot_flutter.dart';
1313
1414
GlobalKey<WpPivotState> globalKey = GlobalKey();
@@ -38,6 +38,4 @@ GlobalKey<WpPivotState> globalKey = GlobalKey();
3838
);
3939
}
4040
41-
42-
4341
```

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ packages:
190190
path: ".."
191191
relative: true
192192
source: path
193-
version: "0.0.1"
193+
version: "0.0.2"
194194
xml:
195195
dependency: transitive
196196
description:

lib/wp_pivot_flutter.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,13 +146,13 @@ class WpPivotState extends State<WpPivot> {
146146
}
147147

148148
class CustomAppBar extends StatefulWidget implements PreferredSizeWidget {
149-
String title;
150-
Color textColor;
151-
FontWeight fontWeight;
152-
double fontSize;
153-
CustomAppBar(
149+
final String title;
150+
final Color textColor;
151+
final FontWeight fontWeight;
152+
final double fontSize;
153+
const CustomAppBar(
154154
{Key key, this.title, this.textColor, this.fontSize, this.fontWeight})
155-
: preferredSize = Size.fromHeight(kToolbarHeight),
155+
: preferredSize = const Size.fromHeight(kToolbarHeight),
156156
super(key: key);
157157

158158
@override

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: wp_pivot_flutter
22
description: A Windows Phone style pivot tab bar implementation in Flutter
3-
version: 0.0.1
3+
version: 0.0.2
44
author: Chinmay Kabi
5-
homepage: https://github.com/Chinmay-KB/wp-pivot-flutter
5+
homepage: https://github.com/Chinmay-KB/wp_pivot_flutter
66

77
environment:
88
sdk: ">=2.7.0 <3.0.0"

test/wp_pivot_flutter_test.dart

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
import 'package:flutter_test/flutter_test.dart';
2-
3-
import 'package:wp_pivot_flutter/wp_pivot_flutter.dart';
4-
51
// void main() {
62
// test('adds one to input values', () {
73
// final calculator = Calculator();
@@ -10,4 +6,4 @@ import 'package:wp_pivot_flutter/wp_pivot_flutter.dart';
106
// expect(calculator.addOne(0), 1);
117
// expect(() => calculator.addOne(null), throwsNoSuchMethodError);
128
// });
13-
}
9+
//}

0 commit comments

Comments
 (0)