dev_hud 0.0.1 copy "dev_hud: ^0.0.1" to clipboard
dev_hud: ^0.0.1 copied to clipboard

A lightweight, draggable, game-focused debug overlay for Flutter. Monitor FPS and custom key-value data with zero performance cost when disabled.

example/lib/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return DevHud(
      enabled: true, // Remote Config'den gelen değer buraya!
      child: MaterialApp(
        home: Scaffold(
          appBar: AppBar(title: const Text('DevHud Example')),
          body: const GameSimulation(),
        ),
      ),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Center(
      child: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        children: [
          const Text("Press buttons to update HUD"),
          const SizedBox(height: 20),
          ElevatedButton(
            onPressed: () {
              // Veri Güncelleme Örneği
              DevHudService.instance.update("Player HP", 100);
              DevHudService.instance.update("Weapon", "Sword");
            },
            child: const Text("Start Game Logic"),
          ),
          ElevatedButton(
            onPressed: () {
              DevHudService.instance.update("Enemy Count", 50);
            },
            child: const Text("Spawn Enemies"),
          ),
        ],
      ),
    );
  }
}
1
likes
0
points
75
downloads

Publisher

unverified uploader

Weekly Downloads

A lightweight, draggable, game-focused debug overlay for Flutter. Monitor FPS and custom key-value data with zero performance cost when disabled.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on dev_hud