Created
November 22, 2024 17:09
-
-
Save craiglabenz/bb704084c9d39cd586a020ec079b3af4 to your computer and use it in GitHub Desktop.
Minimal Flutter file using pkg:mix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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