running_stroke 0.0.2 copy "running_stroke: ^0.0.2" to clipboard
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)
      ),
    );
  }
}
7
likes
130
points
30
downloads

Publisher

unverified uploader

Weekly Downloads

Incorporation dynamic and visually appealing running stroke animations into Flutter projects.

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on running_stroke