forked from eatvio/eatvio_app
feat(diary): add diary, calendar, meals, products, add product button, modal add product
This commit is contained in:
@@ -22,7 +22,6 @@ class ProfileCubit extends Cubit<ProfileState> {
|
||||
));
|
||||
} catch (e) {
|
||||
emit(ProfileState.error(errorMessage: e.toString()));
|
||||
print(e);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,7 +40,6 @@ class ProfileCubit extends Cubit<ProfileState> {
|
||||
));
|
||||
} catch (e) {
|
||||
emit(ProfileState.error(errorMessage: e.toString()));
|
||||
print(e);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,7 +57,6 @@ class ProfileCubit extends Cubit<ProfileState> {
|
||||
await getMyProfile(period: _currentPeriod);
|
||||
} catch (e) {
|
||||
emit(ProfileState.error(errorMessage: e.toString()));
|
||||
print(e);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,7 +68,6 @@ class ProfileCubit extends Cubit<ProfileState> {
|
||||
await getMyProfile(period: _currentPeriod);
|
||||
} catch (e) {
|
||||
emit(ProfileState.error(errorMessage: e.toString()));
|
||||
print(e);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -81,7 +77,6 @@ class ProfileCubit extends Cubit<ProfileState> {
|
||||
try {
|
||||
return (await chatRepository.getChatRoomIdByUserSlug(slug: slug)).id;
|
||||
} catch (e) {
|
||||
print(e);
|
||||
rethrow;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -277,7 +277,7 @@ class _ProfileScreenState extends State<ProfileScreen> {
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
Container(
|
||||
width: MediaQuery.of(context).size.width - 4,
|
||||
width: MediaQuery.of(context).size.width - 2,
|
||||
padding: const EdgeInsets.symmetric(horizontal: 4),
|
||||
child: Material(
|
||||
color: Colors.white,
|
||||
|
||||
Reference in New Issue
Block a user