Browse Source

打开注释代码

master
Jolie 3 months ago
parent
commit
4e4ec9dedc
4 changed files with 45 additions and 46 deletions
  1. 65
      lib/pages/home/user_information_page.dart
  2. 10
      lib/pages/main/main_page.dart
  3. 6
      lib/pages/message/chat_page.dart
  4. 10
      lib/widget/message/chat_input_bar.dart

65
lib/pages/home/user_information_page.dart

@ -236,39 +236,38 @@ class UserInformationPage extends StatelessWidget {
),
],
),
//
// Container(
// width: 63.w,
// height: 27.w,
// decoration: BoxDecoration(
// borderRadius: BorderRadius.all(Radius.circular(27.w)),
// color: const Color.fromRGBO(117, 98, 249, .1)
// ),
// child: Row(
// mainAxisAlignment: MainAxisAlignment.center,
// children: [
// Image.asset(
// Assets.imagesPlayer,
// width: 15.w,
// height: 15.w,
// ),
// SizedBox(width: 4.w,),
// Image.asset(
// Assets.imagesVoice,
// width: 15.w,
// height: 13.w,
// ),
// SizedBox(width: 4.w,),
// Text(
// "6'",
// style: TextStyle(
// fontSize: 11.w,
// color: const Color.fromRGBO(117, 98, 249, 1)
// ),
// )
// ],
// ),
// )
Container(
width: 63.w,
height: 27.w,
decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(27.w)),
color: const Color.fromRGBO(117, 98, 249, .1)
),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Image.asset(
Assets.imagesPlayer,
width: 15.w,
height: 15.w,
),
SizedBox(width: 4.w,),
Image.asset(
Assets.imagesVoice,
width: 15.w,
height: 13.w,
),
SizedBox(width: 4.w,),
Text(
"6'",
style: TextStyle(
fontSize: 11.w,
color: const Color.fromRGBO(117, 98, 249, 1)
),
)
],
),
)
],
),
SizedBox(height: 8.w,),

10
lib/pages/main/main_page.dart

@ -41,7 +41,7 @@ class _MainPageState extends State<MainPage> {
//
homePage = HomePage();
// discoverPage = DiscoverPage();
discoverPage = DiscoverPage();
messagePage = MessagePage();
minePage = MinePage();
@ -80,7 +80,7 @@ class _MainPageState extends State<MainPage> {
controller: pageController,
children: [
homePage, // 使
// discoverPage,
discoverPage,
messagePage,
minePage,
],
@ -92,9 +92,9 @@ class _MainPageState extends State<MainPage> {
useVerticalDivider: false,
navigationTabs: [
tabItem('首页', Assets.imagesHomePre, Assets.imagesHomeNol, 0),
// tabItem('找对象', Assets.imagesDiscoverPre, Assets.imagesDiscoverNol, 1),
tabItem('消息', Assets.imagesMessagePre, Assets.imagesMessageNol, 1),
tabItem('我的', Assets.imagesMinePre, Assets.imagesMineNol, 2),
tabItem('找对象', Assets.imagesDiscoverPre, Assets.imagesDiscoverNol, 1),
tabItem('消息', Assets.imagesMessagePre, Assets.imagesMessageNol, 2),
tabItem('我的', Assets.imagesMinePre, Assets.imagesMineNol, 3),
]
)
),

6
lib/pages/message/chat_page.dart

@ -6,7 +6,7 @@ import 'package:im_flutter_sdk/im_flutter_sdk.dart';
import '../../controller/message/chat_controller.dart';
import '../../controller/message/voice_player_manager.dart';
// import '../../controller/message/call_manager.dart'; //
// import '../../controller/message/call_manager.dart'; //
import '../../generated/assets.dart';
import '../../model/home/marriage_data.dart';
import '../../../widget/message/chat_input_bar.dart';
@ -289,7 +289,7 @@ class _ChatPageState extends State<ChatPage> {
//
_showGiftPopup();
},
//
//
// onVoiceCall: () async {
// //
// await CallManager.instance.initiateCall(
@ -298,7 +298,7 @@ class _ChatPageState extends State<ChatPage> {
// chatController: controller,
// );
// },
//
//
// onVideoCall: () async {
// //
// await CallManager.instance.initiateCall(

10
lib/widget/message/chat_input_bar.dart

@ -291,7 +291,7 @@ class _ChatInputBarState extends State<ChatInputBar> {
width: 24.w,
height: 24.w,
).onTap(_toggleVoiceOptions),
//
//
// Image.asset(
// Assets.imagesSendCall,
// width: 24.w,
@ -299,7 +299,7 @@ class _ChatInputBarState extends State<ChatInputBar> {
// ).onTap(() {
// widget.onVoiceCall?.call();
// }),
//
//
// Image.asset(
// Assets.imagesSendVideoCall,
// width: 24.w,
@ -308,9 +308,9 @@ class _ChatInputBarState extends State<ChatInputBar> {
// widget.onVideoCall?.call();
// }),
//
// Image.asset(Assets.imagesGift, width: 24.w, height: 24.w).onTap(() {
// widget.onGiftTap?.call();
// }),
Image.asset(Assets.imagesGift, width: 24.w, height: 24.w).onTap(() {
widget.onGiftTap?.call();
}),
//
Image.asset(Assets.imagesEmoji, width: 24.w, height: 24.w).onTap(_toggleEmojiPanel),
//

Loading…
Cancel
Save