hypen 0.0.4+1
hypen: ^0.0.4+1 copied to clipboard
A set of libraries that help you design robust, testable, and maintainable apps.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:hypen/hypen.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return const MaterialApp(
title: 'Flutter Demo',
home: MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}
class CounterWidget extends HypenWidget {
const CounterWidget({super.key});
@override
Widget build(BuildContext context) {
final (count, setCount) = useState(() => 0);
return GestureDetector(
onTap: () => setCount(count + 1),
child: Text("$count"),
);
}
}