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.

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
40
pub points
0%
popularity

Publisher

verified publisherakshit.tech

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

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flatify