refactor: Remove unnecessary builder widget

This commit is contained in:
krille-chan 2024-11-03 11:02:06 +01:00
commit 4453048285
No known key found for this signature in database
2 changed files with 18 additions and 22 deletions

View file

@ -287,20 +287,7 @@ class ChatView extends StatelessWidget {
Expanded(
child: GestureDetector(
onTap: controller.clearSingleSelectedEvent,
child: Builder(
builder: (context) {
if (controller.timeline == null) {
return const Center(
child: CircularProgressIndicator.adaptive(
strokeWidth: 2,
),
);
}
return ChatEventList(
controller: controller,
);
},
),
child: ChatEventList(controller: controller),
),
),
if (controller.room.canSendDefaultMessages &&