refactor: Remove unnecessary builder widget
This commit is contained in:
parent
6e92693966
commit
4453048285
2 changed files with 18 additions and 22 deletions
|
|
@ -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 &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue