flatify 1.0.0 icon indicating copy to clipboard operation
flatify: ^1.0.0 copied to clipboard

A set of extensions for flutter widgets, makes code more readable and easier to write.

Flutter Flatify #

A set of extensions for flutter widgets, makes code more readable and easier to write. Flatify is heavily inspired by superchared and swift UI modifiers

📝 Examples #

  • Creating a styled text widget

    import 'package:flatify/flatify.dart';
    import 'package:flutter/material.dart';
    
    Widget styledText = Text(
      'Hello Flatify',
      style: TextStyle()
          .withFontSize(20)
          .withFontColor(Colors.red)
          .withFontWeight(FontWidget.w600)
          .withItalics()
          .withFontFamily('Montserrat'),
    );
    
  • Adding padding to a widget

    import 'package:flatify/flatify.dart';
    import 'package:flutter/material.dart';
    
    Widget paddedContainer = Container().withPadding(const EdgeInsets.all(8));
    
  • Adding a corner radius to the widget

    import 'package:flatify/flatify.dart';
    import 'package:flutter/material.dart';
    
    Widget roundedContainer = Container().withCornerRadius(BorderRadius.circular(8));
    

And many more...

1
likes
110
pub points
0%
popularity

Publisher

verified publisher iconakshit.tech

A set of extensions for flutter widgets, makes code more readable and easier to write.

Homepage

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flatify