mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-25 22:39:22 +00:00
Create newest posts screen
This commit is contained in:
parent
67a6befc02
commit
8d188373ce
@ -1,6 +1,7 @@
|
||||
import 'package:comunic/ui/screens/conversations_list_screen.dart';
|
||||
import 'package:comunic/ui/screens/friends_list_screen.dart';
|
||||
import 'package:comunic/ui/screens/menus_screen.dart';
|
||||
import 'package:comunic/ui/screens/newest_posts.dart';
|
||||
import 'package:comunic/ui/tiles/custom_bottom_navigation_bar_item.dart';
|
||||
import 'package:comunic/utils/intl_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
@ -54,9 +55,12 @@ class _HomeRouteState extends State<HomeRoute> {
|
||||
return ConversationsListScreen();
|
||||
|
||||
case 1:
|
||||
return FriendsListScreen();
|
||||
return NewestPostsScreen();
|
||||
|
||||
case 2:
|
||||
return FriendsListScreen();
|
||||
|
||||
case 3:
|
||||
return MenuScreen();
|
||||
|
||||
default:
|
||||
@ -71,6 +75,10 @@ class _HomeRouteState extends State<HomeRoute> {
|
||||
icon: Icon(Icons.chat),
|
||||
title: Text(tr("Conversations")),
|
||||
),
|
||||
CustomNavigationBarItem(
|
||||
icon: Icon(Icons.refresh),
|
||||
title: Text(tr("Newest")),
|
||||
),
|
||||
CustomNavigationBarItem(
|
||||
icon: Icon(Icons.group),
|
||||
title: Text(tr("Friends")),
|
||||
|
20
lib/ui/screens/newest_posts.dart
Normal file
20
lib/ui/screens/newest_posts.dart
Normal file
@ -0,0 +1,20 @@
|
||||
import 'package:comunic/utils/ui_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
/// Newest posts screen
|
||||
///
|
||||
/// @author Pierre HUBERT
|
||||
|
||||
class NewestPostsScreen extends StatefulWidget {
|
||||
@override
|
||||
State<StatefulWidget> createState() => _NewestPostsScreenState();
|
||||
}
|
||||
|
||||
class _NewestPostsScreenState extends State<NewestPostsScreen> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return buildCenteredProgressBar();
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user