zeba_academy_keyboard 1.0.0 copy "zeba_academy_keyboard: ^1.0.0" to clipboard
zeba_academy_keyboard: ^1.0.0 copied to clipboard

Keyboard utilities for Flutter including keyboard visibility, height, animation, dismiss helper and keyboard-aware builder.

======================================================== ๐Ÿ“ฆ ZEBA ACADEMY KEYBOARD #

A lightweight Flutter package for handling keyboard events, animations, height detection, and UI utilities.

======================================================== ๐Ÿš€ FEATURES #

โœ” Keyboard open / close listener โœ” Real-time keyboard height detection โœ” Smooth keyboard animation support โœ” Tap-to-dismiss keyboard helper โœ” Keyboard-aware builder widget โœ” Fully reactive & lightweight โœ” No external dependencies โœ” Flutter 3+ compatible

======================================================== ๐Ÿ“ฅ INSTALLATION #

Add dependency in pubspec.yaml:

dependencies: zeba_academy_keyboard: ^1.0.0

Then run:

flutter pub get

======================================================== ๐Ÿง  CORE CONCEPT #

This package is built around a central controller:

KeyboardController โ†“ State Management (open / close / height) โ†“ Reactive Widgets (Builder / Listener / Animation) โ†“ Utility Helpers

======================================================== ๐Ÿ“Œ BASIC USAGE #


  1. DISMISS KEYBOARD

KeyboardDismiss( child: Scaffold( body: TextField(), ), );


  1. KEYBOARD ANIMATED PADDING

KeyboardAnimatedPadding( child: YourWidget(), );


  1. KEYBOARD HEIGHT LISTENER

KeyboardHeight( builder: (context, height) { return Text("Height: $height"); }, );


  1. KEYBOARD AWARE BUILDER

KeyboardAwareBuilder( builder: (context, visible, height) { return Column( children: [ Text(visible ? "Keyboard Open" : "Keyboard Closed"), Text("Height: $height"), ], ); }, );


  1. KEYBOARD OPEN/CLOSE LISTENER

KeyboardListener( onOpened: () { print("Keyboard Opened"); }, onClosed: () { print("Keyboard Closed"); }, child: YourWidget(), );

======================================================== ๐Ÿงฐ UTILITY METHODS #

KeyboardUtils.dismiss(context);

bool visible = KeyboardUtils.isVisible(context);

double height = KeyboardUtils.height(context);

======================================================== ๐Ÿ“ฑ EXAMPLE APP #

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

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

class MyApp extends StatelessWidget { const MyApp({super.key});

@override Widget build(BuildContext context) { return MaterialApp( home: KeyboardDismiss( child: Scaffold( appBar: AppBar(title: Text("Keyboard Demo")), body: KeyboardAnimatedPadding( child: Padding( padding: EdgeInsets.all(16), child: Column( children: [ TextField(), SizedBox(height: 20),

              KeyboardAwareBuilder(
                builder: (context, visible, height) {
                  return Text(
                    visible
                        ? "Keyboard Open: $height"
                        : "Keyboard Closed",
                  );
                },
              ),
            ],
          ),
        ),
      ),
    ),
  ),
);

} }

======================================================== โšก WHY THIS PACKAGE? #

Flutter does NOT provide:

โŒ Simple keyboard state listener โŒ Easy keyboard height access โŒ Built-in keyboard animation helpers โŒ Reusable keyboard-aware widgets

This package solves all of these in a clean architecture.

======================================================== ๐Ÿ“„ REQUIREMENTS #

โ€ข Flutter 3.0+ โ€ข Dart 3.0+

======================================================== ๐Ÿงช TESTING #

Run tests:

flutter test

======================================================== ๐Ÿ“œ LICENSE #

GNU GENERAL PUBLIC LICENSE v3 (GPL-3.0)

Copyright (C) 2026 Zeba Academy

This program is free software: you can redistribute it and/or modify it under GPL v3.

NO WARRANTY is provided.

https://www.gnu.org/licenses/gpl-3.0.html

======================================================== ๐Ÿ‘จโ€๐Ÿ’ป ABOUT ME #

Sufyan bin Uzayr Open-source developer

Website: https://sufyanism.com LinkedIn: https://www.linkedin.com/in/sufyanism

======================================================== ๐ŸŽ“ ZEBA ACADEMY #

https://zeba.academy https://code.zeba.academy https://www.youtube.com/@zeba.academy https://www.instagram.com/zeba.academy/

======================================================== ๐Ÿ’™ THANK YOU #

If you like this package: โญ Star it on GitHub ๐Ÿค Contribute improvements ๐Ÿ“ฆ Use it in your projects #

0
likes
140
points
70
downloads

Documentation

API reference

Publisher

verified publisherzeba.academy

Weekly Downloads

Keyboard utilities for Flutter including keyboard visibility, height, animation, dismiss helper and keyboard-aware builder.

Homepage

License

GPL-3.0 (license)

Dependencies

flutter

More

Packages that depend on zeba_academy_keyboard