homy_nocode_kit 0.0.2 homy_nocode_kit: ^0.0.2 copied to clipboard
A Flutter package to simplify no-code integrations with Homy.
import 'package:flutter/material.dart';
import 'package:homy_nocode_kit/homy_nocode_kit.dart';
void main() {
runApp(const MainApp());
}
class MainApp extends StatelessWidget {
const MainApp({super.key});
@override
Widget build(BuildContext context) {
return const MaterialApp(
home: _WidgetsPage(),
);
}
}
class _WidgetsPage extends StatelessWidget {
const _WidgetsPage();
@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: Column(
children: [
SimpleButtonForTesting(
onPressed: () {
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(
content: Text('You pressed the button!'),
),
);
},
label: 'Press me',
)
],
),
),
);
}
}