grock 0.0.7+8 grock: ^0.0.7+8 copied to clipboard
Snackbar, Toast, No Context Extension, Custom Widgets, Widget Extensions, Fast Tools, IOS Style Widget and Tools.
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: const Center(child: Text("Grock")),
),
);
}
}