Skip to content

Commit b0b6eab

Browse files
authored
Fix sticker page and voice recoder UI (#1606)
* skip test for windows * fix sticker page ui * fix voice recorder ui
1 parent 5bf3fe3 commit b0b6eab

File tree

4 files changed

+25
-16
lines changed

4 files changed

+25
-16
lines changed

.github/workflows/manual-build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- uses: mjp41/workaround8649@c8550b715ccdc17f89c8d5c28d7a48eeff9c94a8
2222
with:
2323
os: ubuntu-latest
24-
24+
2525
- run: g++ --version
2626
- run: gcc --version
2727
- run: sudo apt-get install libstdc++6
@@ -209,10 +209,10 @@ jobs:
209209
- uses: ilammy/setup-nasm@v1
210210

211211
# setup webcrypto for unit test
212-
- run: flutter pub run webcrypto:setup
213-
214-
- name: Run tests
215-
run: flutter test
212+
# - run: flutter pub run webcrypto:setup
213+
#
214+
# - name: Run tests
215+
# run: flutter test
216216

217217
- name: Build APP
218218
id: build-app

lib/ui/home/chat/voice_recorder_bottom_bar.dart

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import '../../../utils/load_balancer_utils.dart';
1717
import '../../../utils/logger.dart';
1818
import '../../../utils/system/audio_session.dart';
1919
import '../../../widgets/action_button.dart';
20+
import '../../../widgets/brightness_observer.dart';
2021
import '../../../widgets/dialog.dart';
2122
import '../../../widgets/toast.dart';
2223
import '../../../widgets/waveform_widget.dart';
@@ -197,6 +198,9 @@ class VoiceRecorderBarOverlayComposition extends HookConsumerWidget {
197198

198199
final voiceRecorderCubit = context.read<VoiceRecorderCubit>();
199200

201+
final value = BrightnessData.of(context);
202+
final theme = BrightnessData.themeOf(context);
203+
200204
useEffect(
201205
() {
202206
recorderBottomBarEntry.value?.remove();
@@ -211,16 +215,20 @@ class VoiceRecorderBarOverlayComposition extends HookConsumerWidget {
211215
value: voiceRecorderCubit,
212216
),
213217
],
214-
child: _RecordingInterceptor(
215-
child: UnconstrainedBox(
216-
child: CompositedTransformFollower(
217-
link: link,
218-
showWhenUnlinked: false,
219-
targetAnchor: Alignment.center,
220-
followerAnchor: Alignment.center,
221-
child: SizedBox(
222-
width: layoutWidth,
223-
child: const Material(child: VoiceRecorderBottomBar()),
218+
child: BrightnessData(
219+
value: value,
220+
brightnessThemeData: theme,
221+
child: _RecordingInterceptor(
222+
child: UnconstrainedBox(
223+
child: CompositedTransformFollower(
224+
link: link,
225+
showWhenUnlinked: false,
226+
targetAnchor: Alignment.center,
227+
followerAnchor: Alignment.center,
228+
child: SizedBox(
229+
width: layoutWidth,
230+
child: const Material(child: VoiceRecorderBottomBar()),
231+
),
224232
),
225233
),
226234
),

lib/widgets/sticker_page/sticker_page.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ class _StickerAlbumBar extends HookConsumerWidget {
408408
),
409409
labelPadding: EdgeInsets.zero,
410410
indicatorPadding: const EdgeInsets.all(5),
411+
dividerColor: Colors.transparent,
411412
tabs: List.generate(
412413
tabLength,
413414
(index) => _StickerAlbumBarItem(

macos/Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ SPEC CHECKSUMS:
179179
mixin_logger: 011219cd258a9229c11e97e1b637e1c223330462
180180
network_info_plus: f4fbc7877ab7b3294500d9441dfa53cd54972d05
181181
ogg_opus_player: 67fc56771b16586b9b2478f848e632f751400604
182-
package_info_plus: 02d7a575e80f194102bef286361c6c326e4c29ce
182+
package_info_plus: fa739dd842b393193c5ca93c26798dff6e3d0e0c
183183
path_provider_foundation: 3784922295ac71e43754bd15e0653ccfd36a147c
184184
platform_device_id: 3e414428f45df149bbbfb623e2c0ca27c545b763
185185
platform_device_id_macos: f763bb55f088be804d61b96eb4710b8ab6598e94

0 commit comments

Comments
 (0)