Skip to content

Commit

Permalink
0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinmay-KB committed Aug 22, 2020
1 parent c78d511 commit 170f1da
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 18 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# wp_pivot_flutter

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


## Example

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

```
```dart
import 'package:wp_pivot_flutter/wp_pivot_flutter.dart';
GlobalKey<WpPivotState> globalKey = GlobalKey();
Expand Down Expand Up @@ -38,6 +38,4 @@ GlobalKey<WpPivotState> globalKey = GlobalKey();
);
}
```
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.0.1"
version: "0.0.2"
xml:
dependency: transitive
description:
Expand Down
12 changes: 6 additions & 6 deletions lib/wp_pivot_flutter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,13 @@ class WpPivotState extends State<WpPivot> {
}

class CustomAppBar extends StatefulWidget implements PreferredSizeWidget {
String title;
Color textColor;
FontWeight fontWeight;
double fontSize;
CustomAppBar(
final String title;
final Color textColor;
final FontWeight fontWeight;
final double fontSize;
const CustomAppBar(
{Key key, this.title, this.textColor, this.fontSize, this.fontWeight})
: preferredSize = Size.fromHeight(kToolbarHeight),
: preferredSize = const Size.fromHeight(kToolbarHeight),
super(key: key);

@override
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: wp_pivot_flutter
description: A Windows Phone style pivot tab bar implementation in Flutter
version: 0.0.1
version: 0.0.2
author: Chinmay Kabi
homepage: https://github.com/Chinmay-KB/wp-pivot-flutter
homepage: https://github.com/Chinmay-KB/wp_pivot_flutter

environment:
sdk: ">=2.7.0 <3.0.0"
Expand Down
6 changes: 1 addition & 5 deletions test/wp_pivot_flutter_test.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
import 'package:flutter_test/flutter_test.dart';

import 'package:wp_pivot_flutter/wp_pivot_flutter.dart';

// void main() {
// test('adds one to input values', () {
// final calculator = Calculator();
Expand All @@ -10,4 +6,4 @@ import 'package:wp_pivot_flutter/wp_pivot_flutter.dart';
// expect(calculator.addOne(0), 1);
// expect(() => calculator.addOne(null), throwsNoSuchMethodError);
// });
}
//}

0 comments on commit 170f1da

Please sign in to comment.