Deponentlanadigan materiallarning titul varag‘i
EHM uchun dastur (Ma’lumotlar bazasi) nomi:
“Telekоmmunikаtsiyа sоhаsidаgi аtаmа vа terminlаrning izоhli lug‘аt dаsturiy tа’minоtini ishlаb chiqish”
Huquq ega(lar)si :
Yusufjon Toshpulatov
Hotamov Abdug’afur
Toshpulatova Dilfuza
Muallif(lar):
Yusufjon Toshpulatov
Hotamov Abdug’afur
Toshpulatova Dilfuza
EHM uchun dasturni identifikatsiya qiluvchi materiallar dastlabki matni (Dastur kodi)
import 'package:bottom_bar/bottom_bar.dart';
import 'package:flutter/material.dart';
import 'package:latex_uz/scren/profile.dart';
import 'package:latex_uz/scren/settings.dart';
import 'info.dart';
class HomePage extends StatefulWidget {
const HomePage({super.key});
@override
State createState() => _HomePageState();
}
class _HomePageState extends State {
int _currentPage = 0;
final _pageController = PageController();
@override
Widget build(BuildContext context) {
return Scaffold(
body: PageView(
controller: _pageController,
children: [Info(), Profile(), Settings()],
onPageChanged: (index) {
// Use a better state management solution
// setState is used for simplicity
setState(() => _currentPage = index);
},
),
bottomNavigationBar: BottomBar(
selectedIndex: _currentPage,
onTap: (int index) {
_pageController.jumpToPage(index);
setState(() => _currentPage = index);
},
items: [
BottomBarItem(
icon: Icon(Icons.home),
title: Text('Malumotlar'),
activeColor: Colors.blue,
),
BottomBarItem(
icon: Icon(Icons.person),
title: Text('Yaratuvchilar'),
activeColor: Colors.greenAccent.shade700,
),
BottomBarItem(
icon: Icon(Icons.settings),
title: Text('Sozlamalar'),
activeColor: Colors.orange,
),
],
),
);
}
}
Do'stlaringiz bilan baham: |