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

A comprehensive Flutter package for building beautiful admin dashboards with customizable sidebar, dashboard cards, and chart integrations.

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  const MyApp({super.key});
  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      debugShowCheckedModeBanner: false,
      home: DemoPage(),
    );
  }
}

class DemoPage extends StatefulWidget {
  const DemoPage({super.key});
  @override
  State<DemoPage> createState() => _DemoPageState();
}

class _DemoPageState extends State<DemoPage> {
  int index = 0;
  @override
  Widget build(BuildContext context) {
    final items = const [
      DashboardMenuItem(icon: Icons.home, label: 'Home'),
      DashboardMenuItem(icon: Icons.point_of_sale, label: 'POS'),
      DashboardMenuItem(icon: Icons.assessment_outlined, label: 'Reports'),
      DashboardMenuItem(icon: Icons.diamond, label: 'Products'),
    ];
    return Scaffold(
      backgroundColor: const Color(0xFFF5F7FA),
      body: Row(
        children: [
          DashboardSidebar(
            items: items,
            selectedIndex: index,
            onSelect: (i) => setState(() => index = i),
            licenseStatus: LicenseStatusInfo(expiryDate: DateTime.now().add(const Duration(days: 360))),
            onLicenseTap: () {},
          ),
          Expanded(
            child: Padding(
              padding: const EdgeInsets.all(16),
              child: ListView(
                children: const [
                  RevenueCard(amount: 45230, title: 'Bu günkü satış'),
                  SizedBox(height: 12),
                  WarehouseCard(productCount: 128, buyAmount: 89342),
                  SizedBox(height: 12),
                  GrowthCard(label: 'Dünən', percent: 0.18, color: Colors.green, icon: Icons.trending_up),
                  SizedBox(height: 12),
                  MetalPricesCard(goldPrice: 112.7, silverPrice: 1.36),
                  SizedBox(height: 12),
                  GoldPriceChart(values: [108, 109, 110, 111, 113, 114, 115]),
                ],
              ),
            ),
          ),
        ],
      ),
    );
  }
}
1
likes
150
points
126
downloads

Publisher

verified publishercinar.fun

Weekly Downloads

A comprehensive Flutter package for building beautiful admin dashboards with customizable sidebar, dashboard cards, and chart integrations.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

fl_chart, flutter

More

Packages that depend on webadmin