Skip to content

Commit

Permalink
ADD: radial Gauge
Browse files Browse the repository at this point in the history
  • Loading branch information
Afroz-Shaikh committed May 24, 2023
1 parent eb237c7 commit 610337b
Show file tree
Hide file tree
Showing 34 changed files with 32 additions and 39 deletions.
61 changes: 31 additions & 30 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,38 +24,39 @@ class _MyValueBarPositionState extends State<MyValueBarPosition> {
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: LinearGauge(
gaugeOrientation: GaugeOrientation.horizontal,
child: RadialGauge(track: RadialTrack(start: 0, end: 100)),
// child: LinearGauge(
// gaugeOrientation: GaugeOrientation.horizontal,

// linearGaugeBoxDecoration: LinearGaugeBoxDecoration(thickness: 80),
pointers: [
Pointer(
value: value,
isInteractive: true,
width: 30,
height: 50,
color: Colors.transparent,
onChanged: (value) {
setState(() {
this.value = value;
});
},
shape: PointerShape.circle)
],
valueBar: [ValueBar(value: value)],
// // linearGaugeBoxDecoration: LinearGaugeBoxDecoration(thickness: 80),
// pointers: [
// Pointer(
// value: value,
// isInteractive: true,
// width: 30,
// height: 50,
// color: Colors.transparent,
// onChanged: (value) {
// setState(() {
// this.value = value;
// });
// },
// shape: PointerShape.circle)
// ],
// valueBar: [ValueBar(value: value)],

rulers: const RulerStyle(
inverseRulers: false,
rulerPosition: RulerPosition.bottom,
labelOffset: 10,
rulersOffset: 10,
primaryRulersHeight: 30,
textStyle: TextStyle(
fontFamily: 'Roboto',
color: Colors.black,
),
),
),
// rulers: RulerStyle(
// inverseRulers: false,
// rulerPosition: RulerPosition.bottom,
// labelOffset: 10,
// rulersOffset: 10,
// primaryRulersHeight: 30,
// textStyle: const TextStyle(
// fontFamily: 'Roboto',
// color: Colors.black,
// ),
// ),
// ),
),
);
}
Expand Down
Binary file modified test/custom_labels_test/goldens/ruler-position-bottom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/custom_labels_test/goldens/ruler-position-left.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/custom_labels_test/goldens/ruler-position-right.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/custom_labels_test/goldens/ruler-position-top.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/shader_paint_test/goldens/value-bar-value-100-with-shader.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/value_bar_test/goldens/both-edge-border-radius-value-bar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/value_bar_test/goldens/end-edge-border-radius-value-bar.png
Binary file modified test/value_bar_test/goldens/start-edge-border-radius-value-bar.png
10 changes: 1 addition & 9 deletions test/widget_test/rulers_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,15 @@ import 'package:flutter_test/flutter_test.dart';
import 'package:geekyants_flutter_gauges/geekyants_flutter_gauges.dart';

void main() {
<<<<<<< HEAD
var linearGauge = MaterialApp(
home: Scaffold(
body: LinearGauge(
start: 0,
end: 100,
rulers: const RulerStyle(
rulers: RulerStyle(
rulerPosition: RulerPosition.bottom,
),
),
=======
LinearGauge linearGauge = LinearGauge(
start: 0,
end: 100,
rulers: RulerStyle(
rulerPosition: RulerPosition.bottom,
>>>>>>> 3c83939 (Fix: goldens updated)
),
);
testWidgets('Verify the default start and end', (tester) async {
Expand Down

0 comments on commit 610337b

Please sign in to comment.