45 lines
1.5 KiB
Dart
45 lines
1.5 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flux/core/theme/theme.dart';
|
|
|
|
class AnagraficheMainView extends StatelessWidget {
|
|
const AnagraficheMainView({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
// Controller locale per gestire i Tab
|
|
return DefaultTabController(
|
|
length: 4,
|
|
child: Scaffold(
|
|
appBar: AppBar(
|
|
title: const Text('Anagrafiche'),
|
|
bottom: TabBar(
|
|
isScrollable: true,
|
|
indicatorColor: FluxColors.accentTurquoise,
|
|
labelColor: FluxColors.accentTurquoise,
|
|
unselectedLabelColor: Theme.of(context).textTheme.bodyMedium?.color,
|
|
tabs: [
|
|
Tab(icon: Icon(Icons.storefront), text: 'Negozi'),
|
|
Tab(icon: Icon(Icons.support_agent), text: 'Gestori'),
|
|
Tab(icon: Icon(Icons.assignment_ind), text: 'Clienti'),
|
|
Tab(icon: Icon(Icons.phone_android), text: 'Prodotti'),
|
|
],
|
|
),
|
|
),
|
|
body: const TabBarView(
|
|
children: [
|
|
// Esempi di view iniettate con Bloc dedicati (da implementare)
|
|
/* ElencoEntitaView(tipoEntita: 'Negozi'), // Provider<AnagraficaBloc>...
|
|
ElencoEntitaView(tipoEntita: 'Gestori'),
|
|
ElencoEntitaView(tipoEntita: 'Clienti'),
|
|
ElencoEntitaView(tipoEntita: 'Prodotti'), */
|
|
Placeholder(),
|
|
Placeholder(),
|
|
Placeholder(),
|
|
Placeholder(),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|