flutter_ui_kit_git_ui

Glassmorphism Git UI kit for Flutter — pure UI components for branch, changes, commit, and history.

flutter_ui_kit_git_ui is a backend-agnostic UI library that provides a complete set of Git-workflow widgets with dark-mode-first glassmorphism visuals. Bring your own data; the library handles the rendering.

Features

  • GlassGitBranchBar — current branch display with action buttons.
  • GlassGitBranchManager — branch list with create/switch/delete slots.
  • GlassGitChangeList — staged/unstaged file changes with status badges.
  • GlassGitCommitCard — commit entry card with author, message, and hash.
  • GlassGitHistoryTimeline — scrollable commit history timeline.
  • GlassGitDiffViewer — side-by-side / unified diff viewer.
  • GlassGitStashPanel — stash list with apply/drop actions.
  • GlassGitConflictResolver — conflict file list with resolution slots.
  • GitTheme (ThemeExtension) with dark/light factories.
  • GitMotionData for opt-in entry animations.
  • Zero dependency on Bloc / Riverpod / Provider.

Quick start

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData.dark().copyWith(
        extensions: <ThemeExtension<dynamic>>[GitTheme.dark()],
      ),
      home: Scaffold(
        body: Column(
          children: [
            GlassGitBranchBar(
              branchInfo: GitBranchInfo(name: 'main', isRemote: false),
              onCheckout: (branch) {},
            ),
            Expanded(
              child: GlassGitChangeList(
                files: const [
                  GitFileStatus(path: 'lib/main.dart', status: GitStatus.modified),
                  GitFileStatus(path: 'pubspec.yaml', status: GitStatus.added),
                ],
                onStage: (file) {},
                onUnstage: (file) {},
              ),
            ),
          ],
        ),
      ),
    );
  }
}

Public API

Import only:

import 'package:flutter_ui_kit_git_ui/flutter_ui_kit_git_ui.dart';

Everything in lib/src is intentionally internal and may change.

Run showcase app

cd apps/show_case_git_ui
flutter pub get
flutter run

License

MIT — see LICENSE.

juny