homy_nocode_kit 0.0.2 copy "homy_nocode_kit: ^0.0.2" to clipboard
homy_nocode_kit: ^0.0.2 copied to clipboard

A Flutter package to simplify no-code integrations with Homy.

example/lib/main.dart

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',
            )
          ],
        ),
      ),
    );
  }
}
0
likes
150
points
113
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package to simplify no-code integrations with Homy.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on homy_nocode_kit