54 lines
1.7 KiB
Dart
54 lines
1.7 KiB
Dart
import 'package:birzha/components/localizationOverride.dart';
|
|
import 'package:birzha/components/tab_nav_icons.dart';
|
|
import 'package:birzha/components/tabview.dart';
|
|
import 'package:birzha/models/settings/settingsModel.dart';
|
|
import 'package:birzha/screens/home/homeScreen.dart';
|
|
import 'package:birzha/screens/masterCategoryScreen.dart';
|
|
import 'package:birzha/screens/personalCabinet/personalCabinet.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
import '../new/screens/quotes/screen.dart';
|
|
|
|
class Primal extends StatelessWidget {
|
|
const Primal({Key? key}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return LocalizationOverride(
|
|
builder: (context) {
|
|
return TabView(
|
|
items: [
|
|
TabConfigs(
|
|
index: 0,
|
|
firstScreen: (_) => HomeScreen(),
|
|
routeLabel: 'home'.translation,
|
|
iconData: TabNavIcons.home,
|
|
initialRouteName: '/home',
|
|
),
|
|
TabConfigs(
|
|
index: 1,
|
|
firstScreen: (_) => MasterCategoryScreen(),
|
|
routeLabel: 'category'.translation,
|
|
iconData: TabNavIcons.category,
|
|
initialRouteName: '/category'),
|
|
TabConfigs(
|
|
index: 2,
|
|
firstScreen: (_) => QuotesScreen(),
|
|
routeLabel: 'quotes'.translation,
|
|
iconData: TabNavIcons.news,
|
|
initialRouteName: '/quotations',
|
|
),
|
|
TabConfigs(
|
|
index: 3,
|
|
firstScreen: (_) => PersonalCabinet(),
|
|
routeLabel: 'profile'.translation,
|
|
iconData: TabNavIcons.user,
|
|
initialRouteName: '/user',
|
|
),
|
|
],
|
|
);
|
|
},
|
|
);
|
|
}
|
|
}
|