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

RadialGauge GaugeTitle border occupies entire width of container widget #2104

Open
Abhijit-Revamp opened this issue Oct 1, 2024 · 1 comment
Labels
gauges Gauges component solved Solved the query using existing solutions

Comments

@Abhijit-Revamp
Copy link

Bug description

RadialGauge GaugeTitle border occupies entire width of container widget
Unlike ChartTitle that compacts around the text inside the title.
See the difference in the screen shot side by side

image

Steps to reproduce

Add GaugeTitle to RadialGauge

Code sample

Code sample
Container(
  width:800,
  length: 800,
  child: SfRadialGauge(
    title: const GaugeTitle(
      text: "Title",
      borderColor: Colors.grey,
      borderWidth: 1,
      alignment: GaugeAlignment.center,
      axes: <RadialAxis>[
        // ***** fill standard stuff
      ]
    ),
  ),
),

Screenshots or Video

Screenshots / Video demonstration image

Stack Traces

Stack Traces
-NA-

On which target platforms have you observed this bug?

Web

Flutter Doctor output

Doctor output
[Add your output here]
@VijayakumarMariappan VijayakumarMariappan added gauges Gauges component open Open labels Oct 3, 2024
@Baranibharathip
Copy link

Hi @Abhijit-Revamp ,

We have reviewed your query, and currently, the gauge title is rendered using the full available width of the widget. We suspect that you are trying to apply a background color to the gauge title. If so, we recommend using the TextStyle property’s backgroundColor to apply the background color, which will cover only the width of the title text. Please refer to the following code snippet.

Code snippet:

SizedBox(
	width: 500,
	height: 500,
	child: SfRadialGauge(
       title: const GaugeTitle(
         text: "Radial Gauge",
         textStyle: TextStyle(backgroundColor: Colors.amber),
         alignment: GaugeAlignment.center,
         ),
       axes: <RadialAxis>[
	   .....
	  ],
	),
  )

In case the above solution differs from your exact requirement, kindly provide more details, and we will further validate and provide you a better solution.

Regards,
Baranibharathi P.

@LavanyaGowtham2021 LavanyaGowtham2021 added waiting for customer response Cannot make further progress until the customer responds. and removed open Open labels Oct 24, 2024
@LavanyaGowtham2021 LavanyaGowtham2021 added solved Solved the query using existing solutions and removed waiting for customer response Cannot make further progress until the customer responds. labels Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gauges Gauges component solved Solved the query using existing solutions
Projects
None yet
Development

No branches or pull requests

4 participants