flutter_style_extensions 1.0.1 copy "flutter_style_extensions: ^1.0.1" to clipboard
flutter_style_extensions: ^1.0.1 copied to clipboard

A Flutter package that enhances the readability of Flutter widget styling and reduces boilerplate by leveraging the power of extension methods.

example/lib/main.dart

import 'dart:math' as math;
import 'package:flutter/material.dart';
import 'package:flutter_style_extensions/flutter_style_extensions.dart';

void main() {
  runApp(const MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.lightBlue,
      body: const Text("Welcome to Flutter")
          .margin(const EdgeInsets.all(8.0))
          .backgroundColor(Colors.yellow)
          .opacity(0.8)
          .rotate(math.pi / 2)
          .center(),
    );
  }
}
4
likes
155
points
29
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package that enhances the readability of Flutter widget styling and reduces boilerplate by leveraging the power of extension methods.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_style_extensions