import 'package:flutter/material.dart';
void main() => runApp(const MaterialApp(home: WelcomeScreen(), debugShowCheckedModeBanner: false));
// 1. वेलकम स्क्रीन
class WelcomeScreen extends StatelessWidget {
const WelcomeScreen({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: SingleChildScrollView(
child: Padding(
padding: const EdgeInsets.all(24.0),
child: Column(
children: [
const SizedBox(height: 20),
const Icon(Icons.storefront, size: 70, color: Colors.indigo),
const SizedBox(height: 10),
const Text('शॉप और बिल मैनेजर', style: TextStyle(fontSize: 24, fontWeight: FontWeight.bold)),
const SizedBox(height: 30),
ElevatedButton(
style: ElevatedButton.styleFrom(minimumSize: const Size(double.infinity, 50), backgroundColor: Colors.indigo),
onPressed: () => Navigator.push(context, MaterialPageRoute(builder: (context) => const OwnerDashboard())),
child: const Text('मैं दुकानदार हूँ (Business Login)', style: TextStyle(color: Colors.white)),
),
const SizedBox(height: 15),
OutlinedButton(
style: OutlinedButton.styleFrom(minimumSize: const Size(double.infinity, 50), side: const BorderSide(color: Colors.indigo)),
onPressed: () => Navigator.push(context, MaterialPageRoute(builder: (context) => const CustomerCatalog())),
child: const Text('मैं ग्राहक हूँ (Customer Catalog)', style: TextStyle(color: Colors.indigo)),
),
],
),
),
),
),
);
}
}
// ग्लोबल स्टेट (दुकान की जानकारी और इन्वेंटरी डेटा)
Map shopProfile = {'name': 'कृष्णा जनरल स्टोर', 'address': '123, मेन मार्केट', 'phone': '9876543210'};
List