grock 0.0.8+0 copy "grock: ^0.0.8+0" to clipboard
grock: ^0.0.8+0 copied to clipboard

outdated

Snackbar, Toast, No Context Extension, Custom Widgets, Widget Extensions, Fast Tools, IOS Style Widget and Tools.

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      navigatorKey: Grock.navigationKey,
      scaffoldMessengerKey: Grock.scaffoldMessengerKey,
      title: 'Material App',
      home: Home(),
    );
  }
}

class Home extends StatefulWidget {
  @override
  State<Home> createState() => _HomeState();
}

class _HomeState extends State<Home> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return GrockKeyboardClose(
      child: Scaffold(
        appBar: AppBar(),
        body: Padding(
          padding: 40.padding,
          child: GrockMenu(
            child: Icon(
              Icons.menu,
              size: 40,
            ),
            items: List.generate(50, (index) => index)
                .map((e) => GrockMenuItem(
                      text: e.toString(),
                      onTap: () {
                        Grock.toast(text: e.toString());
                      },
                    ))
                .toList(),
          ),
        ).colored(color: Colors.red),
      ),
    );
  }
}
80
likes
0
pub points
85%
popularity

Publisher

unverified uploader

Snackbar, Toast, No Context Extension, Custom Widgets, Widget Extensions, Fast Tools, IOS Style Widget and Tools.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

connectivity_plus, dio, flutter, get_storage, page_transition

More

Packages that depend on grock