fix: Fixed separator and added effects to theme
This commit is contained in:
@@ -9,6 +9,7 @@ import 'package:stream_chat/stream_chat.dart';
|
||||
import 'package:stream_chat_flutter/src/channels_bloc.dart';
|
||||
import 'package:stream_chat_flutter/src/stream_svg_icon.dart';
|
||||
import 'package:stream_chat_flutter/src/utils.dart';
|
||||
import 'dart:ui' as ui;
|
||||
|
||||
import '../stream_chat_flutter.dart';
|
||||
import 'channel_bottom_sheet.dart';
|
||||
@@ -728,9 +729,17 @@ class _ChannelListViewState extends State<ChannelListView>
|
||||
}
|
||||
|
||||
Widget _separatorBuilder(context, i) {
|
||||
return Container(
|
||||
height: 1,
|
||||
color: StreamChatTheme.of(context).colorTheme.black.withOpacity(0.08),
|
||||
var effect = StreamChatTheme.of(context).colorTheme.borderTop;
|
||||
|
||||
return BackdropFilter(
|
||||
filter: ui.ImageFilter.blur(
|
||||
sigmaX: effect.sigmaX,
|
||||
sigmaY: effect.sigmaY,
|
||||
),
|
||||
child: Container(
|
||||
height: 1,
|
||||
color: effect.color.withOpacity(0.08),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user