Skip to content

Commit 2ecef63

Browse files
committed
[ADD] padding to demo
Signed-off-by: Jonas Klock <jonas.klock@exxeta.com>
1 parent 3dec148 commit 2ecef63

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

example/lib/presentation/samples/stacked_pie/stacked_pie_chart_sample1.dart

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,14 @@ class _StackedPieChartSample1State extends State<StackedPieChartSample1> {
1212
@override
1313
Widget build(BuildContext context) {
1414
return const AspectRatio(
15-
aspectRatio: 1.3,
15+
aspectRatio: 1.0,
1616
child: Column(
1717
children: <Widget>[
1818
SizedBox(height: 28),
1919
Expanded(
20-
child: AspectRatio(
21-
aspectRatio: 1,
22-
child: StackedPieDemo(),
23-
),
20+
child: StackedPieDemo(),
2421
),
22+
SizedBox(height: 28),
2523
],
2624
),
2725
);

lib/src/chart/stacked_pie_chart/stacked_pie_chart_data.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class StackedPieChartData extends BaseChartData with EquatableMixin {
3232
FlBorderData? borderData,
3333
bool? titleSunbeamLayout,
3434
}) : sections = sections ?? const [],
35-
centerSpaceRadius = centerSpaceRadius ?? double.infinity,
35+
centerSpaceRadius = centerSpaceRadius ?? 16,
3636
centerSpaceColor = centerSpaceColor ?? Colors.transparent,
3737
sectionsSpace = sectionsSpace ?? 2,
3838
startDegreeOffset = startDegreeOffset ?? 0,

0 commit comments

Comments
 (0)