mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: user page inside setting overflow
This commit is contained in:
@ -30,6 +30,7 @@ class SettingsUserView extends StatelessWidget {
|
|||||||
// Called when the user open a historical user in the setting dialog
|
// Called when the user open a historical user in the setting dialog
|
||||||
final VoidCallback didOpenUser;
|
final VoidCallback didOpenUser;
|
||||||
final UserProfilePB user;
|
final UserProfilePB user;
|
||||||
|
|
||||||
SettingsUserView(
|
SettingsUserView(
|
||||||
this.user, {
|
this.user, {
|
||||||
required this.didLogin,
|
required this.didLogin,
|
||||||
@ -44,7 +45,8 @@ class SettingsUserView extends StatelessWidget {
|
|||||||
create: (context) => getIt<SettingsUserViewBloc>(param1: user)
|
create: (context) => getIt<SettingsUserViewBloc>(param1: user)
|
||||||
..add(const SettingsUserEvent.initial()),
|
..add(const SettingsUserEvent.initial()),
|
||||||
child: BlocBuilder<SettingsUserViewBloc, SettingsUserState>(
|
child: BlocBuilder<SettingsUserViewBloc, SettingsUserState>(
|
||||||
builder: (context, state) => Column(
|
builder: (context, state) => SingleChildScrollView(
|
||||||
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
@ -55,12 +57,12 @@ class SettingsUserView extends StatelessWidget {
|
|||||||
_renderCurrentOpenaiKey(context),
|
_renderCurrentOpenaiKey(context),
|
||||||
const VSpace(20),
|
const VSpace(20),
|
||||||
_renderHistoricalUser(context),
|
_renderHistoricalUser(context),
|
||||||
const Spacer(),
|
|
||||||
_renderLoginOrLogoutButton(context, state),
|
_renderLoginOrLogoutButton(context, state),
|
||||||
const VSpace(20),
|
const VSpace(20),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user