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.