Skip to content

Commit

Permalink
done changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Gani-24 committed Oct 2, 2022
1 parent d82c861 commit b2af6b7
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/slider.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:syncfusion_flutter_sliders/sliders.dart';
import 'package:percent_indicator/percent_indicator.dart';

class slider extends StatefulWidget {
const slider({super.key});
Expand Down Expand Up @@ -452,6 +453,19 @@ class _finalpageState extends State<finalpage> {
),
],
),
Center(
child: CircularPercentIndicator(
radius: 90.0,
animation: true,
animationDuration: 2000,
lineWidth: 20.0,
center: Text(
last + '%',
style: TextStyle(fontSize: 25, color: Colors.white),
),
percent: double.parse(last),
progressColor: Colors.green,
))
]))));
}
}
7 changes: 7 additions & 0 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.3"
percent_indicator:
dependency: "direct main"
description:
name: percent_indicator
url: "https://pub.dartlang.org"
source: hosted
version: "4.2.2"
petitparser:
dependency: transitive
description:
Expand Down
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ dependencies:

# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
percent_indicator: ^4.0.1
slider_gradient: ^0.2.1
slider_controller: ^0.0.4
syncfusion_flutter_sliders: ^20.2.48
Expand Down

0 comments on commit b2af6b7

Please sign in to comment.