flatify 1.0.0
flatify: ^1.0.0

Flutter Android iOS web

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

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flatify Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: Scaffold(
        appBar: AppBar(
          title: Text('Flatify Demo'),
        ),
        body: Container(
          child: Text(
            'Hello flatify',
            style: TextStyle()
                .withFontSize(20.0)
                .withFontColor(Color(0xff121212))
                .withFontWeight(FontWeight.w800),
          ).withCenter(),
        )
            .withSize(height: 128, width: 360)
            .withBackgroundColor(Colors.lightBlue[100])
            .withPadding(),
      ),
    );
  }
}
1
likes
110
pub points
3%
popularity

Publisher

akshit.tech

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flatify