simple_build_context 1.0.9 copy "simple_build_context: ^1.0.9" to clipboard
simple_build_context: ^1.0.9 copied to clipboard

simple_build_context is a library that simplifies accessing and using BuildContext properties in Flutter, enabling faster and more efficient development.

example/main.dart

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

class HomePage extends StatelessWidget {
  const HomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: context.scaffoldBackgroundColor,
      body: Center(
        child: ElevatedButton(
          onPressed: () => context.pushNamed('/pageRoute'),
          child: Text(
            'NextPage',
            style: context.primaryTextTheme.titleMedium,
          ),
        ),
      ),
    );
  }
}
4
likes
80
points
6
downloads

Publisher

verified publisherjhonacode.com

Weekly Downloads

simple_build_context is a library that simplifies accessing and using BuildContext properties in Flutter, enabling faster and more efficient development.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on simple_build_context