running_stroke 0.0.2
running_stroke: ^0.0.2 copied to clipboard
Incorporation dynamic and visually appealing running stroke animations into Flutter projects.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:running_stroke/running_stroke.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(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: const MyHomePage(title: 'Plugin example'),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key, required this.title});
final String title;
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
title: Text(widget.title),
),
body: Center(
child: RunningStroke(text: "Example of the 'Running stroke' plugin work ",
velocity: 100.0,
style: TextStyle(fontSize: 20),
crossAxisAlignment: CrossAxisAlignment.center)
),
);
}
}