32 lines
1.1 KiB
Dart
32 lines
1.1 KiB
Dart
import 'package:flutter/material.dart';
|
|
import '../widgets/template_screen.dart';
|
|
import '../widgets/app_drawer.dart';
|
|
|
|
class DashboardScreen extends StatelessWidget {
|
|
const DashboardScreen({Key? key}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return const TemplateScreen(
|
|
title: 'Dashboard',
|
|
drawer: AppDrawer(),
|
|
body: SingleChildScrollView(
|
|
child: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
Text('Ringkasan Harian', style: TextStyle(fontSize: 20, fontWeight: FontWeight.bold)),
|
|
SizedBox(height: 12),
|
|
Text('- Penjualan hari ini: TODO (implement)') ,
|
|
Text('- Piutang terutang: TODO (implement)'),
|
|
Text('- Stok kritis: TODO (implement)'),
|
|
SizedBox(height: 24),
|
|
Text('Catatan:', style: TextStyle(fontWeight: FontWeight.bold)),
|
|
Text('1. Ambil data penjualan lokal (SQLite) dan agregasi untuk ringkasan.'),
|
|
Text('2. Buat widget chart sederhana setelah data tersedia.'),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|