on_pressed 0.0.1 icon indicating copy to clipboard operation
on_pressed: ^0.0.1 copied to clipboard

A Flutter plugin to make any widget clickable easily

example/lib/main.dart

import 'package:flutter/material.dart';
import 'dart:async';

import 'package:flutter/services.dart';
import 'package:on_pressed/on_pressed.dart';

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

class MyApp extends StatelessWidget {


 
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('OnPressed example app'),
        ),
        body: Center(
          child: Text('Click me').onPressed(()=>print('I have been pressed')),
        ),
      ),
    );
  }
}
2
likes
90
pub points
47%
popularity

Publisher

unverified uploader

A Flutter plugin to make any widget clickable easily

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on on_pressed