Skip to content

Commit 5164545

Browse files
committed
user detail customized
1 parent 5f43553 commit 5164545

File tree

6 files changed

+124
-42
lines changed

6 files changed

+124
-42
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ This is a android application based on Codeforces.
5252

5353
- Handle Details
5454

55-
![Handle Details](assets/ss/user_profile.png)
55+
![Handle Details](assets/ss/profile1.png)
5656

57-
![](assets/ss/profile.png)
57+
![](assets/ss/profile2.png)
5858

5959
* Compare handles
6060

assets/ss/profile.png

-66 KB
Binary file not shown.

assets/ss/profile1.png

76.2 KB
Loading

assets/ss/profile2.png

67.4 KB
Loading

assets/ss/user_profile.png

-78.9 KB
Binary file not shown.

lib/ui/user.dart

Lines changed: 122 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -582,63 +582,145 @@ class User extends StatelessWidget {
582582
children: <Widget>[
583583
Container(
584584
padding: const EdgeInsets.all(10.0),
585-
alignment: Alignment.center,
585+
alignment: Alignment.topCenter,
586586
child: Text(
587-
"Contest Rating",
587+
"Contest Informations",
588588
style: TextStyle(
589-
color: Colors.black,
590-
fontWeight: FontWeight.bold,
591-
fontSize: 30.0,
592-
shadows: [
593-
Shadow(
594-
offset: Offset(3.0, 3.0),
595-
blurRadius: 3.0,
596-
color: Colors.grey,
597-
),
598-
]),
589+
color: Colors.black,
590+
fontWeight: FontWeight.bold,
591+
fontSize: 22.0,
592+
// shadows: [
593+
// Shadow(
594+
// offset: Offset(1.0, 1.0),
595+
// blurRadius: 3.0,
596+
// color: Colors.grey,
597+
// ),
598+
// ]
599+
),
599600
),
600601
),
601602
Row(
602-
mainAxisAlignment:
603-
MainAxisAlignment.spaceBetween,
604603
children: <Widget>[
605-
Padding(
606-
padding:
607-
const EdgeInsets.only(left: 10.0),
608-
child: new Text(
609-
"Lowest :" +
604+
Column(
605+
crossAxisAlignment: CrossAxisAlignment.start,
606+
mainAxisAlignment: MainAxisAlignment.center,
607+
608+
children: <Widget>[
609+
Padding(
610+
padding: const EdgeInsets.only(left:20.0,top:5.0),
611+
child: new Text(
612+
"Total Contests",
613+
style: TextStyle(
614+
fontSize: 15.0,
615+
color: Colors.blue,
616+
),
617+
),
618+
),
619+
Padding(
620+
padding: const EdgeInsets.only(left:20.0,top:5.0),
621+
child: new Text(
622+
"Lowest",
623+
style: TextStyle(
624+
fontSize: 15.0,
625+
color: Colors.grey,
626+
),
627+
),
628+
),
629+
Padding(
630+
padding: const EdgeInsets.only(left:20.0,top:5.0),
631+
child: new Text(
632+
"Highest",
633+
style: TextStyle(
634+
fontSize: 15.0,
635+
color: Colors.red,
636+
shadows: []),
637+
),
638+
)
639+
],
640+
),
641+
VerticalDivider(),
642+
Column(
643+
crossAxisAlignment: CrossAxisAlignment.center,
644+
children: <Widget>[
645+
Padding(
646+
padding: const EdgeInsets.only(left:20.0,top:5.0),
647+
child: new Text(
648+
":",
649+
),
650+
),
651+
Padding(
652+
padding: const EdgeInsets.only(left:20.0,top:5.0),
653+
child: new Text(
654+
":",
655+
),
656+
),
657+
Padding(
658+
padding: const EdgeInsets.only(left:20.0,top:5.0),
659+
child: new Text(
660+
":",
661+
),
662+
)
663+
],
664+
),
665+
VerticalDivider(),
666+
Column(
667+
crossAxisAlignment: CrossAxisAlignment.start,
668+
mainAxisAlignment: MainAxisAlignment.center,
669+
children: <Widget>[
670+
Padding(
671+
padding: const EdgeInsets.only(left:20.0,top:5.0),
672+
child: new Text(
673+
contestRatingData.length.toString(),
674+
style: TextStyle(
675+
fontSize: 15.0,
676+
color: Colors.blue,
677+
),
678+
),
679+
),
680+
Padding(
681+
padding: const EdgeInsets.only(left:20.0,top:5.0),
682+
child: new Text(
610683
(((contestRatingData.reduce(
611684
(curr, next) => curr < next
612685
? curr
613686
: next)).round())
614687
.toString()),
615-
style: TextStyle(
616-
fontSize: 20.0,
617-
color: Colors.red,
688+
style: TextStyle(
689+
fontSize: 15.0,
690+
color: Colors.grey,
691+
),
692+
),
618693
),
619-
),
620-
),
621-
Padding(
622-
padding:
623-
const EdgeInsets.only(right: 10.0),
624-
child: new Text(
625-
"Highest : " +
694+
Padding(
695+
padding: const EdgeInsets.only(left:20.0,top:5.0),
696+
child: new Text(
626697
(((contestRatingData.reduce(
627698
(curr, next) => curr > next
628699
? curr
629700
: next)).round())
630701
.toString()),
631-
style: TextStyle(
632-
fontSize: 20.0,
633-
color: Colors.blue,
634-
shadows: []),
635-
),
702+
style: TextStyle(
703+
fontSize: 15.0,
704+
color: Colors.red,
705+
shadows: []),
706+
),
707+
),
708+
],
636709
)
637710
],
638711
),
712+
Container(
713+
padding: const EdgeInsets.only(top: 10.0),
714+
alignment: Alignment.center,
715+
child: Text("Rating Curve",style: TextStyle(
716+
color: Colors.black,
717+
fontWeight: FontWeight.w500,
718+
fontSize: 20.0,
719+
),),
720+
),
639721
Padding(
640722
padding: const EdgeInsets.only(
641-
top: 30.0, left: 5.0),
723+
top: 10.0, left: 5.0),
642724
child: Sparkline(
643725
data: contestRatingData.isEmpty
644726
? [0.0]
@@ -660,10 +742,10 @@ class User extends StatelessWidget {
660742
// fillMode: FillMode.below,
661743
),
662744
),
663-
Divider(
664-
color: Colors.grey,
665-
thickness: 1.0,
666-
),
745+
// Divider(
746+
// // color: Colors.black,
747+
// // thickness: 1.0,
748+
// ),
667749
],
668750
),
669751
),
@@ -673,7 +755,7 @@ class User extends StatelessWidget {
673755
StaggeredTile.extent(4, 320),
674756
// StaggeredTile.extent(2, 200),
675757
// StaggeredTile.extent(2, 200),
676-
StaggeredTile.extent(4, 250),
758+
StaggeredTile.extent(4, 300),
677759
],
678760
);
679761
} else

0 commit comments

Comments
 (0)