flutter_extensionz 4.3.3
flutter_extensionz: ^4.3.3 copied to clipboard
A set of Flutter extensions I use in various projects. Including BuildContext, Color extensions and more.
import 'package:flutter/material.dart';
import 'package:flutter_extensionz/flutter_extensionz.dart';
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return const MaterialApp(
home: Home(),
);
}
}
class Home extends StatelessWidget {
const Home({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: IconButton(
onPressed: () => context.showSnackBar(const Text("I'm a snackbar!")),
icon: const Icon(Icons.home),
),
),
);
}
}