extension_kit 0.1.1 icon indicating copy to clipboard operation
extension_kit: ^0.1.1 copied to clipboard

This is Dart extension kit. If this plugin is imported your project, it enable to use various extension function.

example/lib/main.dart

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

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

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {

  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Page(),
    );
  }
}

class Page extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Plugin example app'),
      ),
      body: GestureDetector(
        child: Center(
          child: Text('width: ${context.deviceWidth}, height: ${context.deviceHeight}\n'
              'Dark: ${context.isDark}\n'),
        ),
        onTap: () => context.hideKeyboard(),
      ),
    );
  }
}
1
likes
80
pub points
0%
popularity

Publisher

verified publisher iconmoku.dev

This is Dart extension kit. If this plugin is imported your project, it enable to use various extension function.

Homepage
Repository (GitHub)

Documentation

API reference

License

Icon for licenses.unknown (LICENSE)

Dependencies

flutter, intl

More

Packages that depend on extension_kit