shadow_text 0.0.2 copy "shadow_text: ^0.0.2" to clipboard
shadow_text: ^0.0.2 copied to clipboard

A custom offset shaded text

example/lib/main.dart

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

void main() => runApp(MaterialApp(
  home: HomePage(),
));

class HomePage extends StatefulWidget {
  @override
  _HomePageState createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Shadow Text Demo'),
      ),
      body: Center(
        child: ShadowText(
          text: 'Shadow Text',
          textColor: Colors.pink,
          shadowColor: Colors.blue,
          xTans: 12.0,
          yTans: 12.0,
          opacity: 0.2,
          shadeBuilder: (BuildContext context, String text, Color color) =>
              Container(
                child: Text(
                  text,
                  style: TextStyle(color: color,fontSize: 28.0),
                ),
              ),
        ),
      ),
    );
  }
}
1
likes
30
pub points
34%
popularity

Publisher

unverified uploader

A custom offset shaded text

Repository (GitHub)
View/report issues

License

Apache-2.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on shadow_text