show_touches 0.0.1 copy "show_touches: ^0.0.1" to clipboard
show_touches: ^0.0.1 copied to clipboard

Show finger touch effects for Flutter, with support for multiple fingers, controllers, custom widgets, and animations.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:show_touches/show_touches.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Show Touches Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      builder: ShowTouches.init(),
      home: const MyHomePage(title: 'Flutter Show Touches Demo'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;

  void _incrementCounter() {
    setState(() {
      _counter++;
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            const Text(
              'You have pushed the button this many times:',
            ),
            Text(
              '$_counter',
              style: Theme.of(context).textTheme.headlineMedium,
            ),
          ],
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: _incrementCounter,
        tooltip: 'Increment',
        child: const Icon(Icons.add),
      ),
    );
  }
}
4
likes
160
points
18
downloads
screenshot

Publisher

verified publisheramooos.com

Weekly Downloads

Show finger touch effects for Flutter, with support for multiple fingers, controllers, custom widgets, and animations.

Repository (GitHub)
View/report issues

Topics

#widget #pointer #touch

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on show_touches