Bug fixes

This commit is contained in:
Abdullah Alassaf
2024-08-04 23:23:27 +03:00
parent 1297d4ec89
commit fe10d7a910
8 changed files with 231 additions and 356 deletions
@@ -26,12 +26,14 @@ class RoomsView extends StatelessWidget {
title: 'Space Management',
child: state is LoadingState
? const Center(child: RefreshProgressIndicator())
: Container(
margin: const EdgeInsets.only(top: 32),
: SizedBox(
width: MediaQuery.sizeOf(context).width,
height: MediaQuery.sizeOf(context).height,
child: Column(
child: ListView(
children: [
const SizedBox(
height: 32,
),
if (state is FetchRoomsState)
Container(
decoration: const ShapeDecoration(
@@ -55,7 +55,7 @@ class ProfileTab extends StatelessWidget {
fontWeight: FontWeight.bold,
),
BodyMedium(
text: HomeCubit.user!.lastName ?? '',
text: HomeCubit.user?.lastName ?? '',
fontWeight: FontWeight.bold,
),
],