swiftify 0.0.1 copy "swiftify: ^0.0.1" to clipboard
swiftify: ^0.0.1 copied to clipboard

Swiftify brings the elegance of SwiftUI's modifier syntax to Flutter! This package introduces a streamlined way to build Flutter UIs by extending widgets with chainable, modifier-style methods. Say go [...]

Swiftify brings the simplicity and elegance of SwiftUI's modifier-style syntax to Flutter! With Swiftify, you can create beautiful UIs with cleaner and more readable code by using chainable, declarative methods to modify widgets.

Features #

SwiftUI-like Modifiers: Apply common widget properties (e.g., padding, textstyles etc) with intuitive .modifier() methods. Chainable Methods: Combine multiple modifications into a single statement for a clean and declarative style. Cleaner Codebase: Reduce widget nesting and improve code readability. Support for Common Widgets: Includes extensions for Text and more.

Text("Hello, Flutter!")
    .padding()
    .center()
    .backgroundColor(Colors.blue);

Getting started #

To start using Swiftify, add the package to your Flutter project.

dependencies:
  swiftify: ^0.0.1

Run flutter pub get to fetch the package.

Import the package in your Dart file:

import 'package:swiftify/swiftify.dart';

Usage #

Text Modifier Example

Text("Hello, Flutter!")
    .padding()
    .center()
    .backgroundColor(Colors.blue);

Additional information #

Contributing: Contributions are welcome! Feel free to open issues or submit pull requests on GitHub.

0
likes
130
points
16
downloads

Publisher

unverified uploader

Weekly Downloads

Swiftify brings the elegance of SwiftUI's modifier syntax to Flutter! This package introduces a streamlined way to build Flutter UIs by extending widgets with chainable, modifier-style methods. Say goodbye to deeply nested widget trees and hello to clean, readable, and maintainable code.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on swiftify