import 'package:ansu_ui/ansu_ui.dart'; import 'package:ansu_ui/chart/circle_chart_widget.dart'; import 'package:example/codeviewer/code_segments.dart'; import 'package:example/common/code_view.dart'; import 'package:flutter/material.dart'; import 'package:get/get.dart'; class ExampleChart extends StatefulWidget { const ExampleChart({Key? key}) : super(key: key); @override _ExampleChartState createState() => _ExampleChartState(); } class _ExampleChartState extends State { @override Widget build(BuildContext context) { return ASScaffold( title: 'chart', actions: [ IconButton( icon: Icon(Icons.code, color: Colors.black54), onPressed: () => Get.to(CodeView( text: (context) => CodeSegments.button(context), )), ), ], body: ListView( children: [ 20.hb, ListTile( title: Text('circle chart'), trailing: Container( width: 50.w, height: 50.w, child: CircleChart( size: 40.w, color: Colors.red, aboveStrokeWidth: 10.w, core: '65%'.text.size(20.sp).color(kTextColor).make(), aspectRato: 0.65, ), )), ], ), ); } }