Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Betting
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nguyễn Minh Nhật
Betting
Commits
6b1d4fca
Commit
6b1d4fca
authored
Sep 09, 2023
by
Nguyễn Minh Nhật
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nmn update
parent
6cce2fbc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
90 additions
and
6 deletions
+90
-6
detail_matches_regions_controller.dart
...matches_in_regions/detail_matches_regions_controller.dart
+2
-0
detail_matches_regions_page.dart
...etail_matches_in_regions/detail_matches_regions_page.dart
+88
-4
h2h_matches_regions_controller.dart
...s/h2h_matches_regions/h2h_matches_regions_controller.dart
+0
-1
h2h_matches_regions_controller.dart
...s/h2h_matches_regions/h2h_matches_regions_controller.dart
+0
-1
No files found.
lib/view/mobile/find/detail_matches_in_regions/detail_matches_regions_controller.dart
View file @
6b1d4fca
...
...
@@ -172,6 +172,8 @@ class DetailMatchesRegionsController extends GetxController {
return
320
.
h
;
}
else
if
(
isVisiable
.
value
==
true
){
return
360
.
h
;
}
else
if
(
isVisiableYt
.
value
==
true
){
return
320
.
h
;
}
else
{
return
140
.
h
;
}
...
...
lib/view/mobile/find/detail_matches_in_regions/detail_matches_regions_page.dart
View file @
6b1d4fca
...
...
@@ -49,7 +49,9 @@ class DetailMatchesRegionsPage extends GetWidget<DetailMatchesRegionsController>
Scaffold
(
backgroundColor:
Colors
.
transparent
,
appBar:
AppBar
(
MediaQuery
.
of
(
context
).
orientation
==
Orientation
.
landscape
?
controller
.
isVisiableYt
.
value
==
true
||
controller
.
isVisiablebackgroudYt
.
value
==
true
?
null
:
AppBar
(
title:
Obx
(()
=>
Center
(
child:
...
...
@@ -128,6 +130,85 @@ class DetailMatchesRegionsPage extends GetWidget<DetailMatchesRegionsController>
},
child:
const
Icon
(
CupertinoIcons
.
back
,
color:
Colors
.
white
,
size:
24
,),
),
)
:
AppBar
(
title:
Obx
(()
=>
Center
(
child:
Visibility
(
visible:
controller
.
isHeader
.
value
==
false
,
child:
Row
(
children:
[
Expanded
(
flex:
2
,
child:
InkWell
(
onTap:
()
{
Get
.
toNamed
(
Routes
.
detailTeams
);
},
child:
Image
.
network
(
'https://upload.wikimedia.org/wikipedia/vi/thumb/a/a1/Man_Utd_FC_.svg/1200px-Man_Utd_FC_.svg.png'
,
width:
24
.
w
,
height:
24
.
h
,)
),),
Expanded
(
flex:
1
,
child:
controller
.
itemArgument
.
value
.
status
==
'FINISHED'
?
Text
(
'
${controller.itemArgument.value.ftScore}
'
,
textAlign:
TextAlign
.
center
,
style:
TextStyle
(
color:
Colors
.
white
,
fontWeight:
FontWeight
.
bold
,
fontSize:
16
.
sp
),)
:
Text
(
controller
.
outputTimeFormat
.
format
(
DateFormat
(
'HH:mm:ss'
).
parse
(
'
${controller.itemArgument.value.time}
'
)),
textAlign:
TextAlign
.
center
,
style:
TextStyle
(
color:
Colors
.
white
,
fontWeight:
FontWeight
.
bold
,
fontSize:
16
.
sp
),)
,
),
Expanded
(
flex:
2
,
child:
InkWell
(
onTap:
()
{
Get
.
toNamed
(
Routes
.
detailTeams
);
},
child:
Image
.
network
(
'https://upload.wikimedia.org/wikipedia/vi/thumb/a/a1/Man_Utd_FC_.svg/1200px-Man_Utd_FC_.svg.png'
,
width:
24
.
w
,
height:
24
.
h
,)
),),
],
),
),
)
),
centerTitle:
true
,
backgroundColor:
Colors
.
transparent
,
automaticallyImplyLeading:
false
,
actions:
[
Obx
(()
=>
controller
.
isHeader
.
value
==
false
?
const
SizedBox
():
InkWell
(
onTap:
(){
controller
.
isVisiablebackgroudYt
.
value
=!
controller
.
isVisiablebackgroudYt
.
value
;
controller
.
isVisiable
.
value
=
false
;
controller
.
isVisiableYt
.
value
=
false
;
},
child:
const
Icon
(
Icons
.
video_camera_back
,
color:
Colors
.
white
,
size:
24
,),
),),
SizedBox
(
width:
30
.
w
,),
InkWell
(
onTap:
(){
controller
.
isVisiable
.
value
=!
controller
.
isVisiable
.
value
;
controller
.
isVisiablebackgroudYt
.
value
=
false
;
controller
.
isVisiableYt
.
value
=
false
;
},
child:
Image
.
asset
(
'assets/images/san.jpg'
,
width:
24
,
height:
24
,),
),
SizedBox
(
width:
10
.
h
,),
],
leading:
InkWell
(
onTap:
(){
Get
.
back
();
Get
.
delete
<
DetailMatchesRegionsController
>();
Get
.
delete
<
SummaryMatchesRegionsController
>();
Get
.
delete
<
StatsMatchesRegionsController
>();
Get
.
delete
<
H2hMatchesRegionsController
>();
},
child:
const
Icon
(
CupertinoIcons
.
back
,
color:
Colors
.
white
,
size:
24
,),
),
),
body:
NestedScrollView
(
...
...
@@ -142,12 +223,15 @@ class DetailMatchesRegionsPage extends GetWidget<DetailMatchesRegionsController>
collapsedHeight:
controller
.
checkHeight
(),
flexibleSpace:
Column
(
children:
[
MediaQuery
.
of
(
context
).
orientation
==
Orientation
.
landscape
?
controller
.
isVisiableYt
.
value
==
true
||
controller
.
isVisiablebackgroudYt
.
value
==
true
?
Container
(
height:
15
,):
const
SizedBox
():
const
SizedBox
(),
bannerDetailMatches
(
context
),
],
),
)),
SliverPersistentHeader
(
floating:
tru
e
,
floating:
fals
e
,
delegate:
MyDelegate
(),
pinned:
true
,),
];
},
...
...
@@ -301,7 +385,7 @@ class DetailMatchesRegionsPage extends GetWidget<DetailMatchesRegionsController>
child:
SizedBox
(
width:
double
.
infinity
,
height:
MediaQuery
.
of
(
context
).
orientation
==
Orientation
.
landscape
?
Get
.
height
/
2
*
3
/
2
-
3
:
180
.
h
,
height:
MediaQuery
.
of
(
context
).
orientation
==
Orientation
.
landscape
?
Get
.
height
:
180
.
h
,
child:
// Chewie(
// controller: controller.chewiwController,)
...
...
@@ -324,7 +408,7 @@ class DetailMatchesRegionsPage extends GetWidget<DetailMatchesRegionsController>
child:
SizedBox
(
width:
double
.
infinity
,
height:
MediaQuery
.
of
(
context
).
orientation
==
Orientation
.
landscape
?
Get
.
height
/
2
*
3
/
2
-
19
:
180
.
h
,
height:
MediaQuery
.
of
(
context
).
orientation
==
Orientation
.
landscape
?
Get
.
height
:
180
.
h
,
child:
Stack
(
children:
[
...
...
lib/view/mobile/find/detail_matches_in_regions/h2h_matches_regions/h2h_matches_regions_controller.dart
View file @
6b1d4fca
...
...
@@ -2,7 +2,6 @@ import 'package:betting/data/base_service/api_response.dart';
import
'package:betting/data/model/res/infor_team/infor_team.dart'
;
import
'package:betting/data/model/res/matches/matches.dart'
;
import
'package:betting/data/repository/matches/matches_repo.dart'
;
import
'package:get/get.dart'
;
import
'package:intl/intl.dart'
;
...
...
lib/view/mobile/find/list_regions/detail_regions/detail_matches_in_regions/h2h_matches_regions/h2h_matches_regions_controller.dart
deleted
100644 → 0
View file @
6cce2fbc
// TODO Implement this library.
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment