27 lines
581 B
Dart
27 lines
581 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:tanami_app/features/Home/presentation/pages/HomeScreen.dart';
|
|
import 'package:tanami_app/shared/components/common_bottom_navigation.dart';
|
|
|
|
var currentTab = [
|
|
const HomeScreen(),
|
|
const SizedBox(),
|
|
const SizedBox(),
|
|
const SizedBox(),
|
|
];
|
|
|
|
var selectedIndex = 0;
|
|
|
|
void updateTab(int index) {
|
|
selectedIndex = index;
|
|
}
|
|
|
|
class MainScreen extends StatelessWidget {
|
|
const MainScreen({super.key});
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
body: currentTab[selectedIndex],
|
|
);
|
|
}
|
|
}
|