zerom 0.0.6 copy "zerom: ^0.0.6" to clipboard
zerom: ^0.0.6 copied to clipboard

There is Zerom package for you to write Flutter easier. It allows you to demand a healthier coding.

example/lib/main.dart

import 'package:example/route.dart';
import 'package:flutter/material.dart';
import 'package:zerom/zerom.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Zerom',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(title: 'Zerom'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({Key? key, required this.title}) : super(key: key);

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Column(
        children: [
          TextButton(
            onPressed: () {
              context.next(const RouteExample());
            },
            child: const Text("Zerom"),
          ),
          Container(
            padding: context.paddinglow,
            width: context.dynamicWidth(0.1),
            height: context.dynamicHeight(0.1),
            color: Colors.amber,
            child: Text(
              "Zerom",
              style: context.theme.textTheme.bodyLarge,
            ),
          ),
          const SizedBox(height: 20),
          ZeromButton(
            title: "Button",
            childApproval: false,
            onTap: () {
              print("object");
            },
            width: context.dynamicWidth(0.4),
            height: context.dynamicHeight(0.1),
          ),
        ],
      ),
    );
  }
}
3
likes
140
points
26
downloads

Publisher

unverified uploader

Weekly Downloads

There is Zerom package for you to write Flutter easier. It allows you to demand a healthier coding.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on zerom