Skip to content

Commit

Permalink
fix #2501 if name is too long
Browse files Browse the repository at this point in the history
  • Loading branch information
EvGen94 committed Sep 8, 2022
1 parent dfda728 commit f7f07ba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions lib/pages/account/account_settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import 'package:get/get.dart';
import 'package:twake/blocs/account_cubit/account_cubit.dart';
import 'package:twake/blocs/authentication_cubit/authentication_cubit.dart';
import 'package:twake/blocs/language_cubit/language_cubit.dart';
import 'package:twake/config/dimensions_config.dart';
import 'package:twake/pages/account/select_language.dart';
import 'package:twake/routing/app_router.dart';
import 'package:twake/routing/route_paths.dart';
Expand Down Expand Up @@ -192,11 +193,14 @@ class _AccountSettingsState extends State<AccountSettings> {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(name,
style: Theme.of(context)
.textTheme
.headline1!
.copyWith(fontWeight: FontWeight.w600, fontSize: 16)),
Container(
constraints: BoxConstraints(maxWidth: Dim.widthPercent(55)),
child: Text(name,
style: Theme.of(context).textTheme.headline1!.copyWith(
fontWeight: FontWeight.w600,
fontSize: 16,
overflow: TextOverflow.ellipsis)),
),
SizedBox(
height: 4,
),
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.1.4
version: 1.1.5

environment:
sdk: ">=2.15.0 <3.0.0"
Expand Down

0 comments on commit f7f07ba

Please sign in to comment.