-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8676fa0
commit 8a4d520
Showing
7 changed files
with
146 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:moyubie/components/chat.dart'; | ||
import 'package:moyubie/components/conversation.dart'; | ||
import 'package:get/get.dart'; | ||
|
||
class MyHomePage extends GetResponsiveView { | ||
@override | ||
Widget? phone() { | ||
return Scaffold( | ||
appBar: AppBar( | ||
title: Text('appTitle'.tr), | ||
), | ||
drawer: const ConversationWindow(), | ||
body: const ChatWindow(), | ||
); | ||
} | ||
|
||
@override | ||
Widget? desktop() { | ||
return Scaffold( | ||
body: Row( | ||
children: const [ | ||
ConversationWindow(), | ||
Expanded(child: ChatWindow()), | ||
], | ||
), | ||
); | ||
} | ||
|
||
@override | ||
Widget? builder() { | ||
return super.builder(); | ||
} | ||
|
||
// @override | ||
// Widget builder() { | ||
// bool useTabs = screen.isPhone || screen.isTablet; | ||
// return Scaffold( | ||
// appBar: useTabs | ||
// ? AppBar( | ||
// title: Text('appTitle'.tr), | ||
// ) | ||
// : null, | ||
// drawer: useTabs ? const ConversationWindow() : null, | ||
// body: Stack( | ||
// children: [ | ||
// useTabs | ||
// ? Row( | ||
// children: const [ | ||
// ChatWindow(), | ||
// ], | ||
// ) | ||
// : Row( | ||
// children: const [ConversationWindow(), ChatWindow()], | ||
// ), | ||
// ], | ||
// ), | ||
// ); | ||
// } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import 'package:flutter/src/widgets/framework.dart'; | ||
import 'package:flutter/src/widgets/placeholder.dart'; | ||
|
||
class UnknownRoutePage extends StatelessWidget { | ||
const UnknownRoutePage({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return const Placeholder(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
import 'package:get/get.dart'; | ||
import 'package:moyubie/pages/home.dart'; | ||
|
||
// final routes = [ | ||
// GetPage(name: '/', page: () => MyHomePage()), | ||
// GetPage(name: '/second', page: () => const SecondPage()), | ||
// GetPage(name: '/setting', page: () => SettingPage()) | ||
// ]; | ||
import 'components/setting.dart'; | ||
|
||
final routes = [ | ||
GetPage(name: '/', page: () => MyHomePage()), | ||
GetPage(name: '/setting', page: () => SettingPage()) | ||
]; |