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:
parent
453346e69c
commit
a1db5bff5c
@ -30,6 +30,7 @@ class SettingsUserView extends StatelessWidget {
|
||||
// Called when the user open a historical user in the setting dialog
|
||||
final VoidCallback didOpenUser;
|
||||
final UserProfilePB user;
|
||||
|
||||
SettingsUserView(
|
||||
this.user, {
|
||||
required this.didLogin,
|
||||
@ -44,21 +45,22 @@ class SettingsUserView extends StatelessWidget {
|
||||
create: (context) => getIt<SettingsUserViewBloc>(param1: user)
|
||||
..add(const SettingsUserEvent.initial()),
|
||||
child: BlocBuilder<SettingsUserViewBloc, SettingsUserState>(
|
||||
builder: (context, state) => Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
_renderUserNameInput(context),
|
||||
const VSpace(20),
|
||||
_renderCurrentIcon(context),
|
||||
const VSpace(20),
|
||||
_renderCurrentOpenaiKey(context),
|
||||
const VSpace(20),
|
||||
_renderHistoricalUser(context),
|
||||
const Spacer(),
|
||||
_renderLoginOrLogoutButton(context, state),
|
||||
const VSpace(20),
|
||||
],
|
||||
builder: (context, state) => SingleChildScrollView(
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
_renderUserNameInput(context),
|
||||
const VSpace(20),
|
||||
_renderCurrentIcon(context),
|
||||
const VSpace(20),
|
||||
_renderCurrentOpenaiKey(context),
|
||||
const VSpace(20),
|
||||
_renderHistoricalUser(context),
|
||||
_renderLoginOrLogoutButton(context, state),
|
||||
const VSpace(20),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user