shader_texts 0.0.2
shader_texts: ^0.0.2 copied to clipboard
Shader Text Package using shader mask
TODO: This package is to make simple text to colorful texts using gradients, shader mask, fonts
Features #
TODO: It has features of various fonts with text shading styles
Getting started #
Shader Text
TODO: Just import package and show ArtText widget
Usage #
TODO: it contains sample example whose image is given below.
import 'package:flutter/material.dart';
import 'package:shader_texts/shader_texts.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: Demo(),
);
}
}
class Demo extends StatefulWidget {
Demo({Key? key}) : super(key: key);
@override
State<Demo> createState() => _DemoState();
}
class _DemoState extends State<Demo> {
@override
Widget build(BuildContext context) {
return SafeArea(
child: Scaffold(
body: Center(
child: ArtText(
myFont: MyFont.podkova,
yourText: 'Your Text',
fontsize: 60,
style: Style.style1))),
);
}
}
![]() |
Additional information #
TODO: In future more styles are to be added time to time along with custom style option would be given for shading, shading styles and colors
