1
0
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:
Pierre HUBERT 2019-05-04 20:01:17 +02:00
parent 67a6befc02
commit 8d188373ce
2 changed files with 29 additions and 1 deletions

View File

@ -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")),

View 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();
}
}