Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

fix: user page inside setting overflow

Lucas.Xua1db5bff5c9f
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_user_view.dart b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_user_view.dart
index a639e06985..49192dda71 100644
--- a/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_user_view.dart
+++ b/frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/settings_user_view.dart
@@ -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),
+ ],
+ ),
),
),
);