awesome_flutter_extensions 0.0.1+2 awesome_flutter_extensions: ^0.0.1+2 copied to clipboard
A Flutter Extension to remove boilerplate when accessing ancestor context properties
import 'package:example/pages/home_page/page.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
fontFamily: 'Roboto',
),
home: const MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}