flutter_androssy 0.2.8-alpha2
flutter_androssy: ^0.2.8-alpha2 copied to clipboard
Collection of service with advanced style and controlling system.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:flutter_androssy/widgets.dart';
Future<void> main() async {
runApp(const Application());
}
class Application extends StatelessWidget {
const Application({
super.key,
});
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: "Androssy",
home: Scaffold(
body: Center(
child: LinearLayout(
children: [
const ImageView(
marginTop: 24,
padding: 24,
width: 100,
shape: ViewShape.squire,
),
IconView(
marginTop: 24,
icon: Icons.edit,
padding: 24,
size: 100,
shape: ViewShape.circular,
tint: Colors.orange,
rippleColor: Colors.black,
backgroundState: ValueState(
ternary: Colors.red.withOpacity(0.1),
primary: Colors.orange.withOpacity(0.1),
secondary: Colors.orange,
),
tintState: const ValueState(
primary: Colors.orange,
secondary: Colors.white,
ternary: Colors.red,
),
onClick: (c) {
c.logValue;
},
onHover: (c) {
c.logValue;
},
),
],
),
),
),
);
}
}