Skip to content

Instantly share code, notes, and snippets.

@craiglabenz
Created November 22, 2024 17:09
Show Gist options
  • Save craiglabenz/bb704084c9d39cd586a020ec079b3af4 to your computer and use it in GitHub Desktop.
Save craiglabenz/bb704084c9d39cd586a020ec079b3af4 to your computer and use it in GitHub Desktop.
Minimal Flutter file using pkg:mix
import 'package:flutter/material.dart';
import 'package:mix/mix.dart';
final style = Style(
$box.height(100),
$box.width(100),
$box.color.purple(),
$box.borderRadius(10),
);
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: Scaffold(
body: Center(
child: Box(style: style),
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment