Add an extra tap region to button widgets

Overview

ExtraTapRegion

A widget to add an extra tap region around the child widget.

a button with an extra tap region

Example

@override
Widget build(BuildContext context) {
  return DeferredPointerHandler(
    child: Scaffold(
      body: Center(
        child: ExtraTapRegion(
          margin: 16.0,
          onPressed: _onPressed,
          child: ElevatedButton(
            onPressed: _onPressed,
            child: const Text('Hello'),
          ),
        ),
      ),
    ),
  );
}

void _onPressed() {}
You might also like...

ABC of Flutter widgets. Intended for super beginners at Flutter. Play with 35+ examples in DartPad directly and get familiar with various basic widgets in Flutter

ABC of Flutter widgets. Intended for super beginners at Flutter. Play with 35+ examples in DartPad directly and get familiar with various basic widgets in Flutter

Basic Widgets Examples This is aimed for complete beginners in Flutter, to get them acquainted with the various basic widgets in Flutter. Run this pro

Sep 18, 2022

Arisprovider - A mixture between dependency injection (DI) and state management, built with widgets for widgets

A mixture between dependency injection (DI) and state management, built with wid

Jan 9, 2022

Widgets intermediate - Intermediate Widgets For Flutter

Widgets intermediate - Intermediate Widgets For Flutter

Intermediate Widgets 4-MODUL 5-LESSON Alert Dialog (Android & IOS) Drawer Single

Feb 6, 2022

A 3D pushable button built in Flutter. Ideal for important CTAs in the app.

A 3D pushable button built in Flutter. Ideal for important CTAs in the app.

Pushable Button A 3D pushable button built in Flutter. Ideal for important CTAs in the app. Usage PushableButton( child: Text('ENROLL NOW', style: s

May 14, 2022

A flutter package that provides multiple states for a button with endless customizability.

A flutter package that provides multiple states for a button with endless customizability.

multi_state_button A package which provides multiple states for a button with endless customizability. Getting Started Add dependency dependencies:

Apr 11, 2022

counter button flutter plugin

counter_button Counter Button is a flutter library that allows you to create a button with animation effects when you increase or decrease the counter

Dec 20, 2021

Flutter package to create list of radio button, by providing a list of objects it can be a String list or list of Map.

Flutter package to create list of radio button, by providing a list of objects it can be a String list or list of Map.

Custom Radio Group List Flutter package to create list of radio button, by providing a list of objects it can be a String list or list of Map. Feature

Nov 30, 2021

A sign in button helper library for Flutter

A sign in button helper library for Flutter

A Flutter plugin for iOS and Android for generating signin buttons for different social media account. Feedback and Pull Requests are most welcome! In

Sep 20, 2022

How to Create Bouncing Button in Flutter

How to Create Bouncing Button in Flutter

Bouncing Button 📱 Screenshots Download the Following App for Preview 🖥 Flutter Tutorial All Flutter Tutorials plus additional Code and shorter posts

Mar 15, 2022
Owner
Yusuke Otsuka
Frontend, Backend, Flutter, TypeScript, Golang, Rust, hobbyist
Yusuke Otsuka
Google one tap sign in - Flutter Google One Tap Sign In (Android)

Google One Tap Sign In Google One Tap Sign In (Android) A Flutter Plugin for Goo

null 5 Feb 11, 2022
Flutter Image add drag sort, Image add drag sort, support click event, delete, add, long press drag sort.

flutter_image_add_drag_sort Flutter Image add drag sort, Image add drag sort, support click event, delete, add, long press drag sort, support video fi

null 5 Jun 23, 2020
A fast, extra light and synchronous key-value storage to Get framework

get_storage A fast, extra light and synchronous key-value in memory, which backs up data to disk at each operation. It is written entirely in Dart and

Jonny Borges 255 Sep 29, 2022
A Funtioning basic Clock UI APP with extra functionalities such as displaying thecurrent time location being used and checking time for other timezones simultaneosly.

clock_UI A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if this

Anjola Favour Ayomikun 0 Dec 28, 2021
ValueNotifier, but outside Flutter and with some extra perks

Welcome to state_notifier~ This package is a recommended solution for managing state when using Provider or Riverpod. Long story short, instead of ext

Remi Rousselet 288 Sep 19, 2022
Swipeable button view - Create Ripple Animated Pages With Swipeable Button View

swipeable_button_view You can create ripple animated pages with swipeable_button

cemreonur 3 Apr 22, 2022
Tap Hero Game - An Open Source Flutter Game

Tap Hero ?? ?? TapHero is a casual tapping arcade game. This repo includes Android, iOS, Desktop (macOS, Windows, Linux). For Flutter Web, check the T

Mariano Zorrilla 158 Sep 15, 2022
FLUTTER API: It's powerful navigation by gestures and taps. You can scroll from left to right or tap on the navigation icons.

scroll_navigation My other APIs Video Viewer Video Editor Helpers Features Fancy animations. Customizable colors. Works with the back button. Scrollin

Luis Felipe Murguia Ramos 14 Jun 14, 2022
Target the specific design of Material for Android and Cupertino for iOS widgets through a common set of Platform aware widgets

Flutter Platform Widgets This project is an attempt to see if it is possible to create widgets that are platform aware. Currently in order to render t

null 1.3k Sep 30, 2022
Target the specific design of Material for Android and Cupertino for iOS widgets through a common set of Platform aware widgets

Flutter Platform Widgets This project is an attempt to see if it is possible to create widgets that are platform aware. Currently in order to render t

null 1.3k Sep 29, 2022