mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-26 06:49: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/conversations_list_screen.dart';
|
||||||
import 'package:comunic/ui/screens/friends_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/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/ui/tiles/custom_bottom_navigation_bar_item.dart';
|
||||||
import 'package:comunic/utils/intl_utils.dart';
|
import 'package:comunic/utils/intl_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
@ -54,9 +55,12 @@ class _HomeRouteState extends State<HomeRoute> {
|
|||||||
return ConversationsListScreen();
|
return ConversationsListScreen();
|
||||||
|
|
||||||
case 1:
|
case 1:
|
||||||
return FriendsListScreen();
|
return NewestPostsScreen();
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
|
return FriendsListScreen();
|
||||||
|
|
||||||
|
case 3:
|
||||||
return MenuScreen();
|
return MenuScreen();
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@ -71,6 +75,10 @@ class _HomeRouteState extends State<HomeRoute> {
|
|||||||
icon: Icon(Icons.chat),
|
icon: Icon(Icons.chat),
|
||||||
title: Text(tr("Conversations")),
|
title: Text(tr("Conversations")),
|
||||||
),
|
),
|
||||||
|
CustomNavigationBarItem(
|
||||||
|
icon: Icon(Icons.refresh),
|
||||||
|
title: Text(tr("Newest")),
|
||||||
|
),
|
||||||
CustomNavigationBarItem(
|
CustomNavigationBarItem(
|
||||||
icon: Icon(Icons.group),
|
icon: Icon(Icons.group),
|
||||||
title: Text(tr("Friends")),
|
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