fast_extensions 0.1.2 icon indicating copy to clipboard operation
fast_extensions: ^0.1.2 copied to clipboard

Convenience extensions to make common Flutter tasks less annoying

Convenience extensions to make common Flutter tasks less annoying

pub package codecov checks popularity likes pub points

Features #

ExtensionUse-case
FastLocaleLocalizations.localeOf(context)
FastMaterialColorFastMaterialColor.fromColor(color)
FastMaterialLocalizationsMaterialLocalizations.of(context)
FastMediaQueryMediaQuery.of(context)
FastThemeTheme.of(context)

Usage #

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

void example(BuildContext context) {
  // FastLocale
  context.countryCode;
  context.languageCode;

  // FastMaterialColor
  final primarySwatch = FastMaterialColor.fromColor(const Color(0xFFBC52CC));
  ThemeData(primarySwatch: primarySwatch);

  // FastMaterialLocalizations
  context.backButtonTooltip;

  // FastMediaQuery
  context.screenWidth;
  context.screenHeight;
  context.windowViewInsets;

  // FastTheme
  context.theme;
  context.textTheme;
  context.isDarkMode;
  // ...
}

Additional information #

See fast_ui for more information

0
likes
140
pub points
27%
popularity

Publisher

verified publisher iconrexios.dev

Convenience extensions to make common Flutter tasks less annoying

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on fast_extensions