FlutterFever Studio
Back to packages

Flutter Gb Ui Kit package guide

A collection of ready‑to‑use UI widgets and helpers designed for Geekbears‑style applications.

Install command
Copy and run in your Flutter project
flutter pub add flutter_gb_ui_kit

When to use Flutter Gb Ui Kit

Flutter Gb Ui Kit is a lightweight, dependency‑free UI utility library that supplies a curated set of reusable widgets, layout helpers, and animation shortcuts. The package targets developers who want a consistent visual language without reinventing common components such as custom buttons, card layouts, loading spinners, and themed dialogs. Each widget follows the latest Material 3 guidelines while still allowing easy overrides, making it suitable for both production‑grade apps and rapid prototypes. By bundling these elements into a single, version‑controlled package, teams can reduce UI duplication, accelerate onboarding, and maintain a coherent brand identity across multiple screens.

The kit shines in scenarios where you need polished, out‑of‑the‑box UI building blocks that integrate seamlessly with Flutter’s widget tree. Whether you are constructing a dashboard, an e‑commerce storefront, or a social feed, the library offers pre‑styled components like `GbElevatedButton`, `GbInfoCard`, `GbProgressOverlay`, and `GbAnimatedSwitcher`. These widgets expose a minimal set of parameters, encouraging developers to focus on business logic rather than pixel‑perfect styling. The package also includes a handful of animation utilities—such as fade‑in transitions and staggered list animations—that can be dropped into any `StatefulWidget` with a single line of code.

From an architectural standpoint, Flutter Gb Ui Kit is deliberately agnostic. It does not prescribe a state‑management solution, backend integration, or routing strategy, allowing you to slot it into Clean Architecture, BLoC, Provider, Riverpod, or any other pattern you prefer. Because the widgets are pure Flutter, they can be used inside feature modules, shared libraries, or even as part of a design‑system package that other teams consume. The library respects the current `ThemeData`, so it works out‑of‑the‑box with dark mode, custom color schemes, and platform‑specific adaptations. This makes it a safe addition to both monolithic apps and modular, micro‑frontend‑style Flutter projects.

Getting started is straightforward. Run `flutter pub add flutter_gb_ui_kit` to add the latest 4.1.1 release, then import the package where you need it: `import 'package:flutter_gb_ui_kit/flutter_gb_ui_kit.dart';`. The widgets require Flutter 3.10 or newer and Dart SDK ^3.0.0, aligning with the current stable channel. For production use, keep an eye on the package’s changelog for breaking changes when upgrading major versions, and consider wrapping any heavy animation widgets in `RepaintBoundary` to avoid unnecessary repaints. Because the library does not depend on platform channels, it works on mobile, web, and desktop without additional configuration, but you should test custom fonts and asset bundles on each target platform to ensure visual fidelity.

A beginner-friendly example demonstrates how quickly a fully styled button and card can be assembled. The code snippet below creates a simple screen with a `GbElevatedButton` that triggers a `GbInfoCard` overlay. This pattern showcases the kit’s declarative API, theme awareness, and built‑in animation without requiring any extra setup. As you grow more comfortable, you can explore the advanced helpers like `GbProgressOverlay` for loading states or `GbAnimatedSwitcher` for smooth content transitions. The community around the package is active on GitHub, providing issue templates, contribution guidelines, and a roadmap that encourages developers to extend the kit with their own custom widgets while preserving the original design language.

quickly prototype screens with polished widgets
standardize button and card styles across a large team
add lightweight loading spinners and progress overlays
implement consistent dark‑mode aware components
enhance list views with built‑in staggered animations

Pros

  • zero external dependencies
  • theme‑aware and dark‑mode ready
  • works on all Flutter platforms
  • compact API reduces boilerplate
  • actively maintained with clear changelog

Watch outs

  • limited to the widget set provided
  • no built‑in state‑management integration
  • customization may require overriding internal styles

Setup notes

Add the dependency with the exact command: ``` flutter pub add flutter_gb_ui_kit ``` Then run `flutter pub get` and import the library in your Dart files: ```dart import 'package:flutter_gb_ui_kit/flutter_gb_ui_kit.dart'; ```

Requires Flutter SDK >=3.10.0 and Dart SDK >=3.0.0. The package is pure Dart/Flutter and works on iOS, Android, web, macOS, Windows, and Linux. No platform‑specific setup is needed.

```dart
import 'package:flutter/material.dart';
import 'package:flutter_gb_ui_kit/flutter_gb_ui_kit.dart';

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text('Gb UI Kit Demo')),
      body: Center(
        child: GbElevatedButton(
          label: 'Show Card',
          onPressed: () => showDialog(
            context: context,
            builder: (_) => const GbInfoCard(
              title: 'Hello from Gb!',
              description: 'This card is provided by flutter_gb_ui_kit.',
            ),
          ),
        ),
      ),
    );
  }
}
```

Official package resources