Kasir Grosir: starter Flutter POS (scaffold awal)
This commit is contained in:
31
lib/screens/dashboard.dart
Normal file
31
lib/screens/dashboard.dart
Normal file
@@ -0,0 +1,31 @@
|
||||
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.'),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user