mix 1.5.3 copy "mix: ^1.5.3" to clipboard
mix: ^1.5.3 copied to clipboard

An expressive way to effortlessly build design systems in Flutter.

example/lib/main.dart

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

void main() {
  runApp(const MaterialApp(home: MyApp()));
}

final style = Style(
  $box.height(100),
  $box.width(100),
  $box.margin(10, 20),
  $box.color.blue(),
  $box.borderRadius(10),
  $box.padding(20, 10),
  $box.margin(10),
  $box.border(color: Colors.black, style: BorderStyle.solid, width: 1),
);

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Box(
          style: style,
          child: const Center(child: Text('Hello Mix')),
        ),
      ),
    );
  }
}
301
likes
140
points
18.9k
downloads
screenshot

Publisher

verified publisherleoafarias.com

Weekly Downloads

An expressive way to effortlessly build design systems in Flutter.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, mix_annotations

More

Packages that depend on mix