flutter_arc_text 0.1.1 copy "flutter_arc_text: ^0.1.1" to clipboard
flutter_arc_text: ^0.1.1 copied to clipboard

outdated

Flutter widget that renders text along the arc.

example/lib/main.dart

import 'dart:math';

import 'package:flutter/material.dart';
import 'package:flutter_arc_text/flutter_arc_text.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) => MaterialApp(
        title: 'Flutter Demo',
        theme: ThemeData(
          primarySwatch: Colors.blue,
        ),
        home: Scaffold(
          body: Center(
            child: Container(
              decoration: BoxDecoration(
                border: Border.all(),
                color: Colors.white,
              ),
              width: 300,
              height: 300,
              child: ArcText(
                radius: 100,
                text: 'Hello, Flutter! '
                    'I am ArcText widget. I can draw circular text.',
                textStyle: TextStyle(fontSize: 18, color: Colors.black),
                startAngle: -pi / 2,
              ),
            ),
          ),
        ),
      );
}
47
likes
0
pub points
90%
popularity

Publisher

verified publisherookamikb.dev

Flutter widget that renders text along the arc.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_arc_text