flatify 1.0.0 copy "flatify: ^1.0.0" to clipboard
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
40
points
17
downloads

Publisher

verified publisherakshit.tech

Weekly Downloads

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

Repository (GitHub)

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flatify