Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding syncfusion_flutter_gauges package Gradle issue #699

Closed
ghost opened this issue Apr 28, 2022 · 4 comments
Closed

Adding syncfusion_flutter_gauges package Gradle issue #699

ghost opened this issue Apr 28, 2022 · 4 comments
Labels
gauges Gauges component waiting for customer response Cannot make further progress until the customer responds.

Comments

@ghost
Copy link

ghost commented Apr 28, 2022

While adding the lastest package of syncfusion_flutter_gauges: ^20.1.51 it shows me a error with Gradle. It shows that I have to upgrade it to Gradle 8.0.
How to solve it ?

err

@Yuvaraj-Gajaraj
Copy link
Contributor

Hi @animeshTradingswala,

The Gradle issue will not happen due to updating the gauge widget. As this might be due to some Gradles missing for android. We suggest using delete your android folder in your project and creating it again and trying. If it doesn't work check the android studio and install the required things or reinstall it, this may resolve your problems. If you yet facing any issues, we request to raise the query for Gradle query in StackOverflow.

Thanks,
Yuvaraj.

@ghost
Copy link
Author

ghost commented May 2, 2022

Again I'm facing other issue with my own system.
I'm sharing the all documents here.

Here is my code....
import 'package:flutter/material.dart';
import 'package:syncfusion_flutter_gauges/gauges.dart';

class MyHomePage extends StatefulWidget {
/// Creates the instance of MyHomePage
MyHomePage({Key? key}) : super(key: key);

@OverRide
_MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State {
Widget _getGauge({bool isRadialGauge = true}) {
if (isRadialGauge) {
return _getRadialGauge();
} else {
return _getLinearGauge();
}
}

Widget _getRadialGauge() {
return SfRadialGauge(
title: GaugeTitle(
text: 'Speedometer',
textStyle:
const TextStyle(fontSize: 20.0, fontWeight: FontWeight.bold)),
axes: [
RadialAxis(minimum: 0, maximum: 150, ranges: [
GaugeRange(
startValue: 0,
endValue: 50,
color: Colors.green,
startWidth: 10,
endWidth: 10),
GaugeRange(
startValue: 50,
endValue: 100,
color: Colors.orange,
startWidth: 10,
endWidth: 10),
GaugeRange(
startValue: 100,
endValue: 150,
color: Colors.red,
startWidth: 10,
endWidth: 10)
], pointers: [
NeedlePointer(value: 90)
], annotations: [
GaugeAnnotation(
widget: Container(
child: const Text('90.0',
style: TextStyle(
fontSize: 25, fontWeight: FontWeight.bold))),
angle: 90,
positionFactor: 0.5)
])
]);
}

Widget _getLinearGauge() {
return Container(
child: SfLinearGauge(
minimum: 0.0,
maximum: 100.0,
orientation: LinearGaugeOrientation.horizontal,
majorTickStyle: LinearTickStyle(length: 20),
axisLabelStyle: TextStyle(fontSize: 12.0, color: Colors.black),
axisTrackStyle: LinearAxisTrackStyle(
color: Colors.cyan,
edgeStyle: LinearEdgeStyle.bothFlat,
thickness: 15.0,
borderColor: Colors.grey)),
margin: EdgeInsets.all(10),
);
}

@OverRide
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('Syncfusion Flutter Gauge')),
body: _getGauge());
}
}

err

flutter-version

pubspec

@LavanyaGowtham2021 LavanyaGowtham2021 added the gauges Gauges component label Feb 7, 2024
@Yuvaraj-Gajaraj
Copy link
Contributor

Yuvaraj-Gajaraj commented Feb 9, 2024

We have checked the issue that getting an exception in gradle and tried to replicate the reported in SfRadialGauge with version 24.2.4 by enabling the Axes, Needle, and annotation. However, we were unable to reproduce it on our end. Please check the attached sample, and if you are still experiencing the issue, we request that you replicate it in the attached sample and provide us with more details regarding the specific scenario in which you are encountering this issue. This will help us to assist you more effectively.

@VijayakumarMariappan VijayakumarMariappan added the waiting for customer response Cannot make further progress until the customer responds. label Feb 12, 2024
@LavanyaGowtham2021
Copy link
Collaborator

Please reopen this ticket with requested details, if you need any assistance on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gauges Gauges component waiting for customer response Cannot make further progress until the customer responds.
Projects
None yet
Development

No branches or pull requests

3 participants