Showing
2 changed files
with
0 additions
and
109 deletions
| ... | @@ -47,15 +47,10 @@ class TikTokVidePoem extends StatelessWidget { | ... | @@ -47,15 +47,10 @@ class TikTokVidePoem extends StatelessWidget { | 
| 47 | children: [ | 47 | children: [ | 
| 48 | Text( | 48 | Text( | 
| 49 | title ?? '每日一言', | 49 | title ?? '每日一言', | 
| 50 | -<<<<<<< HEAD | ||
| 51 | - style: | ||
| 52 | - const TextStyle(color: Colors.white, fontSize: 28.0), | ||
| 53 | -======= | ||
| 54 | style: const TextStyle( | 50 | style: const TextStyle( | 
| 55 | fontSize: 28.0, | 51 | fontSize: 28.0, | 
| 56 | color: Colors.white, | 52 | color: Colors.white, | 
| 57 | ), | 53 | ), | 
| 58 | ->>>>>>> 9fecb8a6ef8a0360e7ff66980f084c393cc257ed | ||
| 59 | ), | 54 | ), | 
| 60 | Gaps.vGap10, | 55 | Gaps.vGap10, | 
| 61 | Text( | 56 | Text( | 
| ... | @@ -67,15 +62,10 @@ class TikTokVidePoem extends StatelessWidget { | ... | @@ -67,15 +62,10 @@ class TikTokVidePoem extends StatelessWidget { | 
| 67 | ), | 62 | ), | 
| 68 | Text( | 63 | Text( | 
| 69 | author ?? '诗人', | 64 | author ?? '诗人', | 
| 70 | -<<<<<<< HEAD | ||
| 71 | - style: | ||
| 72 | - const TextStyle(color: Colors.white, fontSize: 16.0), | ||
| 73 | -======= | ||
| 74 | style: const TextStyle( | 65 | style: const TextStyle( | 
| 75 | fontSize: 16.0, | 66 | fontSize: 16.0, | 
| 76 | color: Colors.white, | 67 | color: Colors.white, | 
| 77 | ), | 68 | ), | 
| 78 | ->>>>>>> 9fecb8a6ef8a0360e7ff66980f084c393cc257ed | ||
| 79 | ), | 69 | ), | 
| 80 | ], | 70 | ], | 
| 81 | ), | 71 | ), | ... | ... | 
| ... | @@ -33,42 +33,6 @@ class MyAppBar extends StatelessWidget implements PreferredSizeWidget { | ... | @@ -33,42 +33,6 @@ class MyAppBar extends StatelessWidget implements PreferredSizeWidget { | 
| 33 | ? SystemUiOverlayStyle.light | 33 | ? SystemUiOverlayStyle.light | 
| 34 | : SystemUiOverlayStyle.dark; | 34 | : SystemUiOverlayStyle.dark; | 
| 35 | 35 | ||
| 36 | -<<<<<<< HEAD | ||
| 37 | - final Widget action = actionName.isNotEmpty | ||
| 38 | - ? Positioned( | ||
| 39 | - right: 0.0, | ||
| 40 | - child: Theme( | ||
| 41 | - data: Theme.of(context).copyWith( | ||
| 42 | - buttonTheme: const ButtonThemeData( | ||
| 43 | - padding: EdgeInsets.symmetric(horizontal: 16.0), | ||
| 44 | - minWidth: 60.0, | ||
| 45 | - ), | ||
| 46 | - ), | ||
| 47 | - child: Row( | ||
| 48 | - children: [ | ||
| 49 | - Icon( | ||
| 50 | - Icons.star, | ||
| 51 | - color: Colors.white.withOpacity(0.66), | ||
| 52 | - ), | ||
| 53 | - Gaps.hGap10, | ||
| 54 | - Icon( | ||
| 55 | - Icons.ios_share, | ||
| 56 | - color: Colors.white.withOpacity(0.66), | ||
| 57 | - ), | ||
| 58 | - Gaps.hGap10, | ||
| 59 | - Icon( | ||
| 60 | - Icons.more_horiz, | ||
| 61 | - color: Colors.white.withOpacity(0.66), | ||
| 62 | - ), | ||
| 63 | - Gaps.hGap10, | ||
| 64 | - ], | ||
| 65 | - ), | ||
| 66 | - ), | ||
| 67 | - ) | ||
| 68 | - : Gaps.empty; | ||
| 69 | - | ||
| 70 | -======= | ||
| 71 | ->>>>>>> 9fecb8a6ef8a0360e7ff66980f084c393cc257ed | ||
| 72 | final Widget back = isBack | 36 | final Widget back = isBack | 
| 73 | ? IconButton( | 37 | ? IconButton( | 
| 74 | onPressed: () async { | 38 | onPressed: () async { | 
| ... | @@ -84,73 +48,11 @@ class MyAppBar extends StatelessWidget implements PreferredSizeWidget { | ... | @@ -84,73 +48,11 @@ class MyAppBar extends StatelessWidget implements PreferredSizeWidget { | 
| 84 | ) | 48 | ) | 
| 85 | : Gaps.empty; | 49 | : Gaps.empty; | 
| 86 | 50 | ||
| 87 | -<<<<<<< HEAD | ||
| 88 | - // TODO 复用组件 | ||
| 89 | - final Widget titleWidget = Semantics( | ||
| 90 | - namesRoute: true, | ||
| 91 | - header: true, | ||
| 92 | - child: isShowButtons | ||
| 93 | - ? Container( | ||
| 94 | - width: double.infinity, | ||
| 95 | - alignment: Alignment.center, | ||
| 96 | - child: Row( | ||
| 97 | - mainAxisAlignment: MainAxisAlignment.spaceBetween, | ||
| 98 | - mainAxisSize: MainAxisSize.max, | ||
| 99 | - //交叉轴的布局方式,对于column来说就是水平方向的布局方式 | ||
| 100 | - crossAxisAlignment: CrossAxisAlignment.center, | ||
| 101 | - children: <Widget>[ | ||
| 102 | - TextButton( | ||
| 103 | - onPressed: () => funcLeft!(), | ||
| 104 | - child: Text( | ||
| 105 | - buttonLeft ?? "一言", | ||
| 106 | - style: const TextStyle(color: Colors.white), | ||
| 107 | - ), | ||
| 108 | - ), | ||
| 109 | - const Text("|"), | ||
| 110 | - TextButton( | ||
| 111 | - onPressed: () => funcCenter!(), | ||
| 112 | - child: Text( | ||
| 113 | - buttonCenter ?? "译解", | ||
| 114 | - style: const TextStyle(color: Colors.white), | ||
| 115 | - ), | ||
| 116 | - ), | ||
| 117 | - const Text("|"), | ||
| 118 | - TextButton( | ||
| 119 | - onPressed: () => funcRight!(), | ||
| 120 | - child: Text( | ||
| 121 | - buttonRight ?? "临境", | ||
| 122 | - style: const TextStyle(color: Colors.white), | ||
| 123 | - ), | ||
| 124 | - ), | ||
| 125 | - ], | ||
| 126 | - ), | ||
| 127 | - ) | ||
| 128 | - : Gaps.hGap10, | ||
| 129 | - ); | ||
| 130 | - | ||
| 131 | -======= | ||
| 132 | ->>>>>>> 9fecb8a6ef8a0360e7ff66980f084c393cc257ed | ||
| 133 | return AnnotatedRegion<SystemUiOverlayStyle>( | 51 | return AnnotatedRegion<SystemUiOverlayStyle>( | 
| 134 | value: _overlayStyle, | 52 | value: _overlayStyle, | 
| 135 | child: Material( | 53 | child: Material( | 
| 136 | color: isTransparent ? Colors.transparent : Colors.black, | 54 | color: isTransparent ? Colors.transparent : Colors.black, | 
| 137 | child: SafeArea( | 55 | child: SafeArea( | 
| 138 | -<<<<<<< HEAD | ||
| 139 | - child: Flex( | ||
| 140 | - direction: Axis.horizontal, | ||
| 141 | - children: [ | ||
| 142 | - Expanded( | ||
| 143 | - child: back, | ||
| 144 | - flex: 1, | ||
| 145 | - ), | ||
| 146 | - Expanded( | ||
| 147 | - child: titleWidget, | ||
| 148 | - flex: 4, | ||
| 149 | - ), | ||
| 150 | - Expanded( | ||
| 151 | - child: action, | ||
| 152 | - flex: 2, | ||
| 153 | -======= | ||
| 154 | child: Stack( | 56 | child: Stack( | 
| 155 | alignment: Alignment.center, | 57 | alignment: Alignment.center, | 
| 156 | children: <Widget>[ | 58 | children: <Widget>[ | 
| ... | @@ -167,7 +69,6 @@ class MyAppBar extends StatelessWidget implements PreferredSizeWidget { | ... | @@ -167,7 +69,6 @@ class MyAppBar extends StatelessWidget implements PreferredSizeWidget { | 
| 167 | alignment: Alignment.centerRight, | 69 | alignment: Alignment.centerRight, | 
| 168 | child: homeActionWidgets, | 70 | child: homeActionWidgets, | 
| 169 | ), | 71 | ), | 
| 170 | ->>>>>>> 9fecb8a6ef8a0360e7ff66980f084c393cc257ed | ||
| 171 | ), | 72 | ), | 
| 172 | ], | 73 | ], | 
| 173 | ), | 74 | ), | ... | ... | 
- 
Please register or login to post a comment