Circular Text Widget #
Add dependency in
dependencies: flutter_circular_text: "^0.3.0"
Import in your project:
Basic usage #
CircularText( children: [ TextItem( text: Text( "Chuck Norris".toUpperCase(), style: TextStyle( fontSize: 28, color: Colors.blue, fontWeight: FontWeight.bold, ), ), space: 12, startAngle: -90, startAngleAlignment: StartAngleAlignment.center, direction: CircularTextDirection.clockwise, ), TextItem( text: Text( "top 100 Facts".toUpperCase(), style: TextStyle( fontSize: 20, color: Colors.amberAccent, fontWeight: FontWeight.bold, ), ), space: 10, startAngle: 90, startAngleAlignment: StartAngleAlignment.center, direction: CircularTextDirection.anticlockwise, ), ], radius: 125, position: CircularTextPosition.inside, backgroundPaint: Paint()..color = Colors.grey.shade200, )
example project contains single and multi text demos
Single Text Demo #
Multi Text Demo #
Check Changelog for updates
Reporting issues and requests for new features are always welcome.
- Added multi
StartAngleAlignmentproperty to align text around
- Added single and multi text examples
Text, changed angle position and added some minor changes
- Added support to handle
- Initial version
Example project contains single and multi circular text demos.
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies: flutter_circular_text: ^0.3.0
2. Install it
You can install packages from the command line:
$ flutter pub get
Alternatively, your editor might support
flutter pub get.
Check the docs for your editor to learn more.
3. Import it
Now in your Dart code, you can use:
import 'package:flutter_circular_text/circular_text.dart'; import 'package:flutter_circular_text/circular_text/model.dart'; import 'package:flutter_circular_text/circular_text/widget.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Feb 19, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
- Dart: 2.7.1
- pana: 0.13.5
- Flutter: 1.12.13+hotfix.7
lib/circular_text/widget.dart. (-0.50 points)
lib/circular_text/widget.dart reported 1 hint:
line 150 col 8: The declaration '_debugDrawLines' isn't referenced.