Showing
4 changed files
with
51 additions
and
24 deletions
| ... | @@ -105,7 +105,7 @@ class _PoemPageState extends State<PoemPage> with WidgetsBindingObserver { | ... | @@ -105,7 +105,7 @@ class _PoemPageState extends State<PoemPage> with WidgetsBindingObserver { |
| 105 | // 组合 | 105 | // 组合 |
| 106 | return TikTokScaffold( | 106 | return TikTokScaffold( |
| 107 | controller: tkController, | 107 | controller: tkController, |
| 108 | - header: MyAppBar( | 108 | + header: const MyAppBar( |
| 109 | isBack: false, | 109 | isBack: false, |
| 110 | ), | 110 | ), |
| 111 | leftPage: searchPage, | 111 | leftPage: searchPage, | ... | ... |
| 1 | +import 'dart:ui'; | ||
| 2 | + | ||
| 1 | import 'package:flutter/material.dart'; | 3 | import 'package:flutter/material.dart'; |
| 4 | +import 'package:one_poem/res/resources.dart'; | ||
| 2 | import 'package:one_poem/tiktok/style/style.dart'; | 5 | import 'package:one_poem/tiktok/style/style.dart'; |
| 3 | 6 | ||
| 4 | class TikTokTopInfoColumn extends StatelessWidget { | 7 | class TikTokTopInfoColumn extends StatelessWidget { |
| ... | @@ -13,27 +16,42 @@ class TikTokTopInfoColumn extends StatelessWidget { | ... | @@ -13,27 +16,42 @@ class TikTokTopInfoColumn extends StatelessWidget { |
| 13 | @override | 16 | @override |
| 14 | Widget build(BuildContext context) { | 17 | Widget build(BuildContext context) { |
| 15 | return Container( | 18 | return Container( |
| 16 | - margin: const EdgeInsets.all(10.0), | 19 | + margin: const EdgeInsets.symmetric(vertical: 30.0, horizontal: 25.0), |
| 17 | - child: Column( | 20 | + height: 100.0, |
| 18 | - mainAxisAlignment: MainAxisAlignment.end, | 21 | + width: double.infinity, |
| 19 | - crossAxisAlignment: CrossAxisAlignment.end, | 22 | + decoration: BoxDecoration( |
| 20 | - children: <Widget>[ | 23 | + color: Colors.black.withOpacity(.2), |
| 21 | - // Tapped( | 24 | + border: Border.all(color: Colors.grey, width: 0.1), // 边色与边宽度 |
| 22 | - // child: const TikTokAvatar(), | 25 | + borderRadius: BorderRadius.circular(5.0), |
| 23 | - // onTap: onAvatar, | 26 | + ), |
| 24 | - // ), | 27 | + child: ClipRect( |
| 25 | - Text(info ?? "早安"), | 28 | + child: BackdropFilter( |
| 26 | - Container( | 29 | + filter: ImageFilter.blur( |
| 27 | - width: SysSize.avatar, | 30 | + sigmaX: 10.0, |
| 28 | - height: SysSize.avatar, | 31 | + sigmaY: 10.0, |
| 29 | - margin: const EdgeInsets.only(top: 10), | 32 | + ), |
| 33 | + child: Container( | ||
| 34 | + padding: const EdgeInsets.all(10.0), | ||
| 30 | decoration: BoxDecoration( | 35 | decoration: BoxDecoration( |
| 31 | - borderRadius: BorderRadius.circular(SysSize.avatar / 2.0), | 36 | + color: Colors.grey.shade200.withOpacity(0.1), |
| 32 | - // color: Colors.black.withOpacity(0.8), | 37 | + ), |
| 38 | + child: Padding( | ||
| 39 | + padding: const EdgeInsets.all(0.0), | ||
| 40 | + child: Column( | ||
| 41 | + children: const [ | ||
| 42 | + Text( | ||
| 43 | + '早安', | ||
| 44 | + style: TextStyle( | ||
| 45 | + fontSize: 28.0, | ||
| 46 | + color: Colors.white, | ||
| 47 | + ), | ||
| 33 | ), | 48 | ), |
| 34 | - ) | ||
| 35 | ], | 49 | ], |
| 36 | ), | 50 | ), |
| 51 | + ), | ||
| 52 | + ) , | ||
| 53 | + ), | ||
| 54 | + ), | ||
| 37 | ); | 55 | ); |
| 38 | } | 56 | } |
| 39 | } | 57 | } | ... | ... |
| ... | @@ -96,7 +96,7 @@ class TikTokVideoPage extends StatelessWidget { | ... | @@ -96,7 +96,7 @@ class TikTokVideoPage extends StatelessWidget { |
| 96 | Container( | 96 | Container( |
| 97 | height: double.infinity, | 97 | height: double.infinity, |
| 98 | width: double.infinity, | 98 | width: double.infinity, |
| 99 | - alignment: Alignment.bottomLeft, | 99 | + alignment: Alignment.bottomCenter, |
| 100 | child: leftPoem, | 100 | child: leftPoem, |
| 101 | ), | 101 | ), |
| 102 | Container( | 102 | Container( | ... | ... |
| ... | @@ -28,7 +28,8 @@ class TikTokVidePoem extends StatelessWidget { | ... | @@ -28,7 +28,8 @@ class TikTokVidePoem extends StatelessWidget { |
| 28 | borderRadius: BorderRadius.circular(2.0), | 28 | borderRadius: BorderRadius.circular(2.0), |
| 29 | ), | 29 | ), |
| 30 | height: 220.0, | 30 | height: 220.0, |
| 31 | - margin: const EdgeInsets.all(10.0), | 31 | + width: double.infinity, |
| 32 | + margin: const EdgeInsets.symmetric(vertical: 10.0, horizontal: 25.0), | ||
| 32 | child: InkWell( | 33 | child: InkWell( |
| 33 | child: ClipRect( | 34 | child: ClipRect( |
| 34 | child: BackdropFilter( | 35 | child: BackdropFilter( |
| ... | @@ -46,17 +47,25 @@ class TikTokVidePoem extends StatelessWidget { | ... | @@ -46,17 +47,25 @@ class TikTokVidePoem extends StatelessWidget { |
| 46 | children: [ | 47 | children: [ |
| 47 | Text( | 48 | Text( |
| 48 | title ?? '每日一言', | 49 | title ?? '每日一言', |
| 49 | - style: const TextStyle(fontSize: 28.0), | 50 | + style: const TextStyle( |
| 51 | + fontSize: 28.0, | ||
| 52 | + color: Colors.white, | ||
| 53 | + ), | ||
| 50 | ), | 54 | ), |
| 51 | Gaps.vGap10, | 55 | Gaps.vGap10, |
| 52 | Text( | 56 | Text( |
| 53 | poem ?? '#一言 临境', | 57 | poem ?? '#一言 临境', |
| 54 | style: const TextStyle( | 58 | style: const TextStyle( |
| 55 | - fontFamily: "ZCOOLXiaoWei", fontSize: 24.0), | 59 | + color: Colors.white, |
| 60 | + fontFamily: "ZCOOLXiaoWei", | ||
| 61 | + fontSize: 24.0), | ||
| 56 | ), | 62 | ), |
| 57 | Text( | 63 | Text( |
| 58 | author ?? '诗人', | 64 | author ?? '诗人', |
| 59 | - style: const TextStyle(fontSize: 16.0), | 65 | + style: const TextStyle( |
| 66 | + fontSize: 16.0, | ||
| 67 | + color: Colors.white, | ||
| 68 | + ), | ||
| 60 | ), | 69 | ), |
| 61 | ], | 70 | ], |
| 62 | ), | 71 | ), |
| ... | @@ -65,7 +74,7 @@ class TikTokVidePoem extends StatelessWidget { | ... | @@ -65,7 +74,7 @@ class TikTokVidePoem extends StatelessWidget { |
| 65 | ), | 74 | ), |
| 66 | ), | 75 | ), |
| 67 | onTap: () { | 76 | onTap: () { |
| 68 | - onShowDetail; | 77 | + onShowDetail!(); |
| 69 | }, | 78 | }, |
| 70 | ), | 79 | ), |
| 71 | ); | 80 | ); | ... | ... |
-
Please register or login to post a comment