Skip to content

Commit d0eae15

Browse files
Sandip KakadiyaSandip Kakadiya
authored andcommitted
version and changelog updated
1 parent 93f2626 commit d0eae15

File tree

5 files changed

+21
-9
lines changed

5 files changed

+21
-9
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog
22

3+
## 1.0.8 - 2020-02-18
4+
5+
### Fixed
6+
* Hot reload in GFButton
7+
8+
### Added
9+
* added new component
10+
- GFProgressBar
11+
12+
13+
14+
315
## 1.0.7 - 2020-02-11
416

517
### Fixed

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ packages:
9292
path: ".."
9393
relative: true
9494
source: path
95-
version: "1.0.7"
95+
version: "1.0.8"
9696
image:
9797
dependency: transitive
9898
description:

lib/components/progress_bar/gf_progress_bar.dart

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import 'package:flutter/material.dart';
22
import 'package:getflutter/types/gf_progress_type.dart';
3-
import 'package:vector_math/vector_math_64.dart' as math;
43

54
class GFProgressBar extends StatefulWidget {
65
GFProgressBar({
@@ -462,9 +461,9 @@ class CirclePainter extends CustomPainter {
462461
const double circleStartAngleFixedMargin = 1;
463462

464463
if (reverse) {
465-
final start = math
466-
.radians(360 * circleStartAngleFixedMargin - 90.0 + fixedStartAngle);
467-
final end = math.radians(-progress * circleStartAngleFixedMargin);
464+
final start =
465+
radians(360 * circleStartAngleFixedMargin - 90.0 + fixedStartAngle);
466+
final end = radians(-progress * circleStartAngleFixedMargin);
468467
canvas.drawArc(
469468
Rect.fromCircle(
470469
center: child,
@@ -476,8 +475,8 @@ class CirclePainter extends CustomPainter {
476475
_paintLine,
477476
);
478477
} else {
479-
final start = math.radians(-90.0 + fixedStartAngle);
480-
final end = math.radians(progress * circleStartAngleFixedMargin);
478+
final start = radians(-90.0 + fixedStartAngle);
479+
final end = radians(progress * circleStartAngleFixedMargin);
481480
canvas.drawArc(
482481
Rect.fromCircle(
483482
center: child,
@@ -491,6 +490,8 @@ class CirclePainter extends CustomPainter {
491490
}
492491
}
493492

493+
double radians(double degrees) => degrees * (3.141592 / 180.0);
494+
494495
@override
495496
bool shouldRepaint(CustomPainter oldDelegate) => true;
496497
}

lib/getflutter.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ export 'package:getflutter/components/loader/gf_loader.dart';
3535
export 'package:getflutter/components/progress_bar/gf_progress_bar.dart';
3636

3737
// exports shape, color, position, size, types
38-
3938
export 'colors/gf_color.dart';
4039
export 'position/gf_position.dart';
4140
export 'shape/gf_avatar_shape.dart';

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: getflutter
22
description: GetFlutter is open source libraries that come with pre-build 1000+ UI components. It makes development faster & more enjoyable. You can customize the component as per your need.
3-
version: 1.0.7
3+
version: 1.0.8
44
#author: GetFlutter <[email protected]>
55
homepage: https://github.com/ionicfirebaseapp/getflutter
66

0 commit comments

Comments
 (0)