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

Gradient not supported on Radial Gauge v17.3.26-beta #63

Closed
simeon9696 opened this issue Dec 18, 2019 · 2 comments
Closed

Gradient not supported on Radial Gauge v17.3.26-beta #63

simeon9696 opened this issue Dec 18, 2019 · 2 comments

Comments

@simeon9696
Copy link

Following the example on this page. I get the following error on Android Studio.
The named parameter 'gradient' isn't defined
Is there a way to implement a gradient on the RangePointer?

@override
Widget build(BuildContext context) {
   return Scaffold(
      body: Center(
        child: SfRadialGauge(
            axes:<RadialAxis>[RadialAxis( 
                axisLineStyle: AxisLineStyle(thickness: 0.1,
                  thicknessUnit: GaugeSizeUnit.factor,),
              pointers: <GaugePointer>[RangePointer(
                value: 40, width: 0.1, sizeUnit: GaugeSizeUnit.factor,
                gradient: const SweepGradient(  //error occurs here
                    colors: <Color>[Color(0xFFCC2B5E), Color(0xFF753A88)],
                    stops: <double>[0.25, 0.75]
                ),
              )]
            ),
          ]
        ),
      ),
    );
  }
@sheiksyedm
Copy link

Hi Simeon,

We have provided the gradient support for pointer, range and axis from pub version 17.4.40-beta. Please upgrade your radial gauge pub package version.

Please check our v17.4.40 what's new items in this link.

@simeon9696
Copy link
Author

Upgrading to 17.4.40-beta has solved my issue. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants