mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: remove empty space if no email (#4777)
This commit is contained in:
parent
0d68c42aab
commit
af12beb1c3
@ -1,3 +1,5 @@
|
|||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
import 'package:appflowy/env/cloud_env.dart';
|
import 'package:appflowy/env/cloud_env.dart';
|
||||||
import 'package:appflowy/generated/locale_keys.g.dart';
|
import 'package:appflowy/generated/locale_keys.g.dart';
|
||||||
import 'package:appflowy/mobile/presentation/bottom_sheet/bottom_sheet.dart';
|
import 'package:appflowy/mobile/presentation/bottom_sheet/bottom_sheet.dart';
|
||||||
@ -5,10 +7,10 @@ import 'package:appflowy/startup/startup.dart';
|
|||||||
import 'package:appflowy/workspace/application/user/prelude.dart';
|
import 'package:appflowy/workspace/application/user/prelude.dart';
|
||||||
import 'package:appflowy_backend/protobuf/flowy-user/protobuf.dart';
|
import 'package:appflowy_backend/protobuf/flowy-user/protobuf.dart';
|
||||||
import 'package:easy_localization/easy_localization.dart';
|
import 'package:easy_localization/easy_localization.dart';
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||||
|
|
||||||
import '../widgets/widgets.dart';
|
import '../widgets/widgets.dart';
|
||||||
|
|
||||||
import 'personal_info.dart';
|
import 'personal_info.dart';
|
||||||
|
|
||||||
class PersonalInfoSettingGroup extends StatelessWidget {
|
class PersonalInfoSettingGroup extends StatelessWidget {
|
||||||
@ -34,7 +36,7 @@ class PersonalInfoSettingGroup extends StatelessWidget {
|
|||||||
settingItemList: [
|
settingItemList: [
|
||||||
MobileSettingItem(
|
MobileSettingItem(
|
||||||
name: userName,
|
name: userName,
|
||||||
subtitle: isAuthEnabled
|
subtitle: isAuthEnabled && userProfile.email.isNotEmpty
|
||||||
? Text(
|
? Text(
|
||||||
userProfile.email,
|
userProfile.email,
|
||||||
style: theme.textTheme.bodyMedium?.copyWith(
|
style: theme.textTheme.bodyMedium?.copyWith(
|
||||||
|
Loading…
Reference in New Issue
Block a user