@@ -46,53 +46,50 @@ class DetailScreen extends StatelessWidget {
46
46
YoutubeWidget (youtubeId: extractYoutubeId (args.video.link))),
47
47
Flexible (
48
48
flex: 6 ,
49
- child: ListView (children: [
50
- Container (
51
- margin: const EdgeInsets .only (top: 5 , left: 10 , right: 10 ),
52
- child: Column (
53
- children: [
54
- FittedBox (child: HeaderWidget (video: args.video)),
55
- const SizedBox (height: 15 ),
56
- FutureBuilder <Detail >(
57
- future:
58
- context.read <GrpcClient >().getDetail (args.video.prId),
59
- builder: (context, AsyncSnapshot <Detail > snapshot) {
60
- if (! snapshot.hasData) {
61
- return const Center (
62
- child: CircularProgressIndicator ());
63
- }
49
+ child: Padding (
50
+ padding: const EdgeInsets .all (10 ).copyWith (bottom: 0 ),
51
+ child: ListView (
52
+ children: [
53
+ FittedBox (child: HeaderWidget (video: args.video)),
54
+ const SizedBox (height: 15 ),
55
+ FutureBuilder <Detail >(
56
+ future:
57
+ context.read <GrpcClient >().getDetail (args.video.prId),
58
+ builder: (context, AsyncSnapshot <Detail > snapshot) {
59
+ if (! snapshot.hasData) {
60
+ return const Center (child: CircularProgressIndicator ());
61
+ }
64
62
65
- detail = snapshot.data;
63
+ detail = snapshot.data;
66
64
67
- final papers = detail? .papers ?? [];
68
- final relevantPapers = detail? .relevantPapers ?? [];
69
- final sameAuthorPapers = detail? .sameAuthorPapers ?? [];
65
+ final papers = detail? .papers ?? [];
66
+ final relevantPapers = detail? .relevantPapers ?? [];
67
+ final sameAuthorPapers = detail? .sameAuthorPapers ?? [];
70
68
71
- return Column (
72
- crossAxisAlignment: CrossAxisAlignment .stretch,
73
- children: [
74
- PaperAbstractWidget (paper: papers.first),
75
- const SizedBox (height: 15 ),
69
+ return Column (
70
+ crossAxisAlignment: CrossAxisAlignment .stretch,
71
+ children: [
72
+ PaperAbstractWidget (paper: papers.first),
73
+ const SizedBox (height: 15 ),
76
74
77
- // Shows Recommendation only when there's one.
78
- if (papers.length +
79
- relevantPapers.length +
80
- sameAuthorPapers.length >=
81
- 1 )
82
- RecommendationWidget (detail: detail! ),
83
- const SizedBox (height: 15 ),
75
+ // Shows Recommendation only when there's one.
76
+ if (papers.length +
77
+ relevantPapers.length +
78
+ sameAuthorPapers.length >=
79
+ 1 )
80
+ RecommendationWidget (detail: detail! ),
81
+ const SizedBox (height: 15 ),
84
82
85
- if (papers.isNotEmpty)
86
- RepositoryWidget (
87
- repositories: papers.first.repositories,
88
- )
89
- ]);
90
- },
91
- )
92
- ],
93
- ),
94
- )
95
- ]),
83
+ if (papers.isNotEmpty)
84
+ RepositoryWidget (
85
+ repositories: papers.first.repositories,
86
+ )
87
+ ]);
88
+ },
89
+ )
90
+ ],
91
+ ),
92
+ ),
96
93
)
97
94
],
98
95
),
0 commit comments