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

outdated

Easy to use open source UI library with Widgets to build flutter app.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:hmwidget/hmwidget.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("HmWidget demo"),
        centerTitle: true,
      ),
      body: Center(
        child: HMButton(
          onPressed: () => print("Pressed"),
          buttonVariant: HMButtonVariant.outlined,
          content: 'Press',
          textColor: Colors.blue,
          radius: HMRadius.md,
        ),
      ),
    );
  }
}
1
likes
0
points
44
downloads

Publisher

unverified uploader

Weekly Downloads

Easy to use open source UI library with Widgets to build flutter app.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

file_picker, flutter, flutter_colorpicker, flutter_hooks, styled_widget

More

Packages that depend on hmwidget