diff --git a/lib/_routing/router.dart b/lib/_routing/router.dart index 33734e2..da0c95c 100644 --- a/lib/_routing/router.dart +++ b/lib/_routing/router.dart @@ -1,7 +1,12 @@ import 'package:flutter/material.dart'; import 'package:flutter_social/_routing/routes.dart'; +import 'package:flutter_social/views/chat_details.dart'; +import 'package:flutter_social/views/chats.dart'; +import 'package:flutter_social/views/feed.dart'; import 'package:flutter_social/views/home.dart'; import 'package:flutter_social/views/login.dart'; +import 'package:flutter_social/views/notifications.dart'; +import 'package:flutter_social/views/profile.dart'; import 'package:flutter_social/views/register.dart'; import 'package:flutter_social/views/reset_password.dart'; @@ -15,6 +20,16 @@ Route generateRoute(RouteSettings settings) { return MaterialPageRoute(builder: (context) => RegisterPage()); case resetPasswordViewRoute: return MaterialPageRoute(builder: (context) => ResetPasswordPage()); + case feedsViewRoute: + return MaterialPageRoute(builder: (context) => FeedsPage()); + case notificationsViewRoute: + return MaterialPageRoute(builder: (context) => NotificationsPage()); + case chatsViewRoute: + return MaterialPageRoute(builder: (context) => ChatsPage()); + case chatDetailsViewRoute: + return MaterialPageRoute(builder: (context) => ChatDetailsPage()); + case profileViewRoute: + return MaterialPageRoute(builder: (context) => ProfilePage()); break; default: return MaterialPageRoute(builder: (context) => HomePage()); diff --git a/lib/_routing/routes.dart b/lib/_routing/routes.dart index 6c86ef6..6577236 100644 --- a/lib/_routing/routes.dart +++ b/lib/_routing/routes.dart @@ -2,4 +2,10 @@ const String homeViewRoute = '/'; const String loginViewRoute = 'login'; const String registerViewRoute = 'register'; -const String resetPasswordViewRoute = 'reset_password'; \ No newline at end of file +const String resetPasswordViewRoute = 'reset_password'; + +const String feedsViewRoute = 'feeds'; +const String notificationsViewRoute = 'notifications'; +const String chatsViewRoute = 'chats'; +const String chatDetailsViewRoute = 'chat_details'; +const String profileViewRoute = 'profile'; \ No newline at end of file diff --git a/lib/views/chat_details.dart b/lib/views/chat_details.dart new file mode 100644 index 0000000..9a45ccf --- /dev/null +++ b/lib/views/chat_details.dart @@ -0,0 +1,10 @@ +import 'package:flutter/material.dart'; + +class ChatDetailsPage extends StatelessWidget { + @override + Widget build(BuildContext context) { + return Scaffold( + + ); + } +} \ No newline at end of file diff --git a/lib/views/chats.dart b/lib/views/chats.dart new file mode 100644 index 0000000..b4e14e4 --- /dev/null +++ b/lib/views/chats.dart @@ -0,0 +1,10 @@ +import 'package:flutter/material.dart'; + +class ChatsPage extends StatelessWidget { + @override + Widget build(BuildContext context) { + return Scaffold( + + ); + } +} \ No newline at end of file diff --git a/lib/views/feed.dart b/lib/views/feed.dart new file mode 100644 index 0000000..25d71f3 --- /dev/null +++ b/lib/views/feed.dart @@ -0,0 +1,10 @@ +import 'package:flutter/material.dart'; + +class FeedsPage extends StatelessWidget { + @override + Widget build(BuildContext context) { + return Scaffold( + + ); + } +} \ No newline at end of file diff --git a/lib/views/login.dart b/lib/views/login.dart index c6c53fd..9230007 100644 --- a/lib/views/login.dart +++ b/lib/views/login.dart @@ -97,7 +97,7 @@ class _LoginPageState extends State { ), child: RaisedButton( elevation: 5.0, - onPressed: () => Navigator.pushNamed(context, homeViewRoute), + onPressed: () => Navigator.pushNamed(context, feedsViewRoute), color: Colors.white, shape: new RoundedRectangleBorder( borderRadius: new BorderRadius.circular(7.0), diff --git a/lib/views/notifications.dart b/lib/views/notifications.dart new file mode 100644 index 0000000..a1b4154 --- /dev/null +++ b/lib/views/notifications.dart @@ -0,0 +1,10 @@ +import 'package:flutter/material.dart'; + +class NotificationsPage extends StatelessWidget { + @override + Widget build(BuildContext context) { + return Scaffold( + + ); + } +} \ No newline at end of file diff --git a/lib/views/profile.dart b/lib/views/profile.dart new file mode 100644 index 0000000..07f33d5 --- /dev/null +++ b/lib/views/profile.dart @@ -0,0 +1,10 @@ +import 'package:flutter/material.dart'; + +class ProfilePage extends StatelessWidget { + @override + Widget build(BuildContext context) { + return Scaffold( + + ); + } +} \ No newline at end of file diff --git a/lib/views/register.dart b/lib/views/register.dart index 618b00c..f315616 100644 --- a/lib/views/register.dart +++ b/lib/views/register.dart @@ -1,4 +1,5 @@ import 'package:flutter/material.dart'; +import 'package:flutter_social/_routing/routes.dart'; import 'package:flutter_social/utils/colors.dart'; import 'package:line_icons/line_icons.dart'; @@ -111,7 +112,7 @@ class _RegisterPageState extends State { elevation: 10.0, shadowColor: Colors.white70, child: MaterialButton( - onPressed: () {}, + onPressed: () => Navigator.of(context).pushNamed(feedsViewRoute), child: Text( 'CREATE ACCOUNT', style: TextStyle(