touch_assistive 1.0.0+1 copy "touch_assistive: ^1.0.0+1" to clipboard
touch_assistive: ^1.0.0+1 copied to clipboard

touch assistive drag button.

touch_assistive #

A new Flutter project.

Getting Started #

Import the package #

flutter pub add touch_assistive

Use the plugin # Add the following import to your Dart code:

import 'package:touch_assistive/touch_assistive.dart';

Create a page:

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        centerTitle: true,
        title: Text(widget.title),
      ),
      body: Stack(
        children: [
          TouchAssistive(
            initialOffset: const Offset(100, 100),
            onPressed: () {},
            buttonSize: 60,
            child: Container(
              height: 60,
              width: 60,
              decoration: BoxDecoration(
                borderRadius: BorderRadius.circular(100),
                color: Colors.blue,
              ),
              child: const Icon(
                Icons.touch_app_outlined,
                color: Colors.white,
                size: 40,
              ),
            ),
          ),
        ],
      ),
    );
  }
}

Now you have touch assistive!

2
likes
120
points
0
downloads

Publisher

unverified uploader

Weekly Downloads

touch assistive drag button.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

cupertino_icons, flutter

More

Packages that depend on touch_assistive