Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Nialixus committed Apr 20, 2022
2 parents 58022d2 + b65f312 commit 0b4ff75
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Type Writer Text
<a href='https://pub.dev/packages/typewritertext'><img src='https://img.shields.io/pub/v/typewritertext.svg?logo=flutter&color=blue&style=flat-square'/></a>\
\
A simple typewriter text animation for flutter. Supports iOS, Android, web, Windows, macOS, and Linux.

## Preview
Expand All @@ -22,10 +24,10 @@ const TypeWriterText(
);
```
## Documentation
* `text`, uses `Text()` widget.<br>
* `duration`, uses to define how fast text changes.<br>
* `alignment`, Align the `text` within the occupied size.<br>
* `maintainSize`, to maintain occupied size of final text. Default value is `true`.<br>
* `text`, uses `Text()` widget.
* `duration`, uses to define how fast text changes.
* `alignment`, Align the `text` within the occupied size.
* `maintainSize`, to maintain occupied size of final text. Default value is `true`.
* `play`, to set whether animation should play or not. Default value is `true`.

Full documentation <a href="https://pub.dev/documentation/typewritertext/latest/typewritertext/typewritertext-library.html">here</a>.
Expand Down
6 changes: 2 additions & 4 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'package:typewritertext/typewritertext.dart';

void main() {
runApp(MaterialApp(
title: 'Flutter Demo',
title: 'Typewritertext Demo',
debugShowCheckedModeBanner: false,
theme: ThemeData(primarySwatch: Colors.blue),
home: const MyApp()));
Expand All @@ -15,9 +15,7 @@ class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
width: MediaQuery.of(context).size.width,
height: MediaQuery.of(context).size.height,
body: Padding(
padding: EdgeInsets.all(MediaQuery.of(context).size.width * 0.1),
child: const TypeWriterText(
text: Text(
Expand Down

0 comments on commit 0b4ff75

Please sign in to comment.