flutter_multitool 0.1.0 copy "flutter_multitool: ^0.1.0" to clipboard
flutter_multitool: ^0.1.0 copied to clipboard

Some widget extensions and common classes for improve developer experience

example/main.dart

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

void main() => runApp(MyApp());

// ignore: use_key_in_widget_constructors
class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        scaffoldBackgroundColor: Colors.white,
        colorScheme: ColorScheme.fromSwatch(primarySwatch: Colors.blue)
            .copyWith(background: Colors.white),
      ),
      home: const HomePage(),
    );
  }
}

class HomePage extends StatelessWidget {
  const HomePage({
    Key? key,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Column(
        children: [
          const Text('Some text').expanded(),
          ElevatedButton(
            onPressed: onPressed,
            child: const Text('Save').paddingAll(12.0),
          ),
          const ColoredBox(color: Colors.red).gestureDetector(
            onTap: onPressed,
          ),
        ],
      ),
    );
  }

  void onPressed() {}
}
5
likes
140
points
38
downloads

Publisher

unverified uploader

Weekly Downloads

Some widget extensions and common classes for improve developer experience

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

bloc, flutter, freezed_annotation

More

Packages that depend on flutter_multitool