|
|
@ -4,6 +4,7 @@ import './w_settings.dart';
|
|
|
|
import './w_spot.dart';
|
|
|
|
import './w_spot.dart';
|
|
|
|
import './w_discovery.dart';
|
|
|
|
import './w_discovery.dart';
|
|
|
|
import './w_profile.dart';
|
|
|
|
import './w_profile.dart';
|
|
|
|
|
|
|
|
import './w_messages.dart';
|
|
|
|
|
|
|
|
|
|
|
|
class MainPage extends StatefulWidget {
|
|
|
|
class MainPage extends StatefulWidget {
|
|
|
|
const MainPage({Key? key}) : super(key: key);
|
|
|
|
const MainPage({Key? key}) : super(key: key);
|
|
|
@ -21,13 +22,14 @@ class _MainPageState extends State<MainPage> {
|
|
|
|
new DiscoveryWidget(),
|
|
|
|
new DiscoveryWidget(),
|
|
|
|
SpotsWidget(),
|
|
|
|
SpotsWidget(),
|
|
|
|
Center(child: Text('Tops'),),
|
|
|
|
Center(child: Text('Tops'),),
|
|
|
|
Center(child: Text('Messages'),),
|
|
|
|
MessagesWidget(),
|
|
|
|
SettingsWidget(),
|
|
|
|
SettingsWidget(),
|
|
|
|
];
|
|
|
|
];
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
double height = MediaQuery.of(context).size.height;
|
|
|
|
double height = MediaQuery.of(context).size.height;
|
|
|
|
return Scaffold(
|
|
|
|
return Scaffold(
|
|
|
|
|
|
|
|
resizeToAvoidBottomInset: false,
|
|
|
|
body: screens[_index],
|
|
|
|
body: screens[_index],
|
|
|
|
bottomNavigationBar: NavigationBarTheme(
|
|
|
|
bottomNavigationBar: NavigationBarTheme(
|
|
|
|
data: NavigationBarThemeData(
|
|
|
|
data: NavigationBarThemeData(
|
|
|
|