text_3d 0.0.3 copy "text_3d: ^0.0.3" to clipboard
text_3d: ^0.0.3 copied to clipboard

create 3D text .

text_3d: 3D Text Effects for Flutter #

Easily incorporate visually captivating 3D text effects into your Flutter applications. The text_3d library offers a range of predefined styles, and the flexibility to customize, letting your creativity roam free.

Flutter Dart

Table of Contents #

Installation #

Add the following line to your pubspec.yaml under dependencies:

text_3d: latest_version

Then run:

flutter pub get

Usage #

To use the ThreeDText widget:

import 'package:text_3d/text_3d.dart';

Available Styles #

  • standard: A basic 3D effect.
  • raised: Text appears raised from the background.
  • inset: Text appears pressed into the background.
  • perspectiveRaised: Text has a raised perspective look.
  • perspectiveInset: Text has a pressed perspective look.
  • perspectiveLeft: Text slants to the left in perspective.
  • perspectiveRight: Text slants to the right in perspective.

Example #

Here's a quick example of how to use the ThreeDText widget:

Example Image

 ThreeDText(
text: 'perspectiveRaised',
textStyle: TextStyle(fontSize: 40, color: Colors.green),
depth: 10,
style: ThreeDStyle.perspectiveRaised,
angle: pi / 6,
perspectiveDepth: 30, 
),

Example Image

 ThreeDText(
text: 'perspectiveInset',
textStyle: TextStyle(fontSize: 40, color: Colors.purpleAccent),
depth: 40,
style: ThreeDStyle.perspectiveInset,
angle: pi / 6,
perspectiveDepth: 20,
),

Example Image

ThreeDText(
text: 'perspectiveRight',
textStyle: TextStyle(fontSize: 25, color: Colors.yellow),
style: ThreeDStyle.perspectiveLeft,
perspectiveDepth: 45.0,
),

Example Image

  ThreeDText(
text: 'perspectiveLeft',
textStyle: const TextStyle(
fontSize: 25,
color: Colors.pink ,
fontWeight: FontWeight.bold),
depth: 6,
style: ThreeDStyle.perspectiveLeft,
perspectiveDepth: -45.0
),

Example Image

ThreeDText(
text: "inset",
textStyle: TextStyle(
fontSize: 64,
color: Colors.pinkAccent,
),
style: ThreeDStyle.inset,
),

Example Image

ThreeDText(
text: 'raised',
textStyle: TextStyle(fontSize: 64, color: Colors.blue),
depth: 10,
style: ThreeDStyle.raised,
),

Example Image

ThreeDText(
text: 'standard',
textStyle: TextStyle(fontSize: 40, color: Colors.blue),
depth: 5,
style: ThreeDStyle.standard,
),

Example Image

ThreeDText(
text: 'inset with angle',
textStyle: TextStyle(fontSize: 40, color: Colors.deepOrange),
depth: 5,
style: ThreeDStyle.inset,
angle: 70,
),

Custom Styles #

While the library comes packed with a range of predefined styles, it's designed with flexibility in mind. You can adjust properties like angle, depth, and perspectiveDepth to create unique 3D effects tailored to your design vision.

Contributing #

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License #

MIT


Copy the above text into your README.md file, and it should be well-documented and formatted for users and developers alike!

12
likes
130
points
73
downloads

Publisher

verified publishersetayeshce.ir

Weekly Downloads

create 3D text .

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on text_3d