Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Hoàng Văn Đạt
mypoint_flutter_app
Commits
b75a9279
"ios/Flutter/Pro.xcconfig" did not exist on "36ac8d24573a2935dfb9f560f19ff53c6e9c76bd"
Commit
b75a9279
authored
Sep 23, 2025
by
DatHV
Browse files
update config, build.
parent
36ac8d24
Changes
42
Show whitespace changes
Inline
Side-by-side
lib/widgets/custom_navigation_bar.dart
View file @
b75a9279
import
'package:auto_size_text/auto_size_text.dart'
;
import
'package:flutter/material.dart'
;
import
'package:get/get.dart'
;
import
'../screen/home/header_home_viewmodel.dart'
;
...
...
@@ -62,21 +63,34 @@ class CustomNavigationBar extends StatelessWidget implements PreferredSizeWidget
children:
[
Padding
(
padding:
EdgeInsets
.
symmetric
(
horizontal:
paddingTitle
),
child:
FittedBox
(
fit:
BoxFit
.
scaleDown
,
// tự giảm font để vừa khung
child:
Text
(
child:
AutoSizeText
(
title
,
maxLines:
1
,
softWrap:
false
,
overflow:
TextOverflow
.
visible
,
// không dùng ellipsis
minFontSize:
12
,
// 👈 không nhỏ hơn 8
stepGranularity:
0.1
,
// scale mượt hơn
overflow:
TextOverflow
.
visible
,
// giữ nguyên như bạn đang dùng
textAlign:
TextAlign
.
center
,
style:
const
TextStyle
(
fontSize:
18
,
// cỡ tối đa
fontSize:
18
,
//
👈
cỡ tối đa
mong muốn
fontWeight:
FontWeight
.
w800
,
color:
Colors
.
white
,
),
),
),
// child: FittedBox(
// fit: BoxFit.scaleDown, // tự giảm font để vừa khung
// child: Text(
// title,
// maxLines: 1,
// softWrap: false,
// overflow: TextOverflow.visible, // không dùng ellipsis
// textAlign: TextAlign.center,
// style: const TextStyle(
// fontSize: 18, // cỡ tối đa
// fontWeight: FontWeight.w800,
// color: Colors.white,
// ),
// ),
// ),
),
// Text(
// title,
...
...
pubspec.yaml
View file @
b75a9279
...
...
@@ -71,6 +71,7 @@ dependencies:
firebase_core
:
^4.1.0
firebase_messaging
:
^16.0.1
flutter_local_notifications
:
^19.4.2
auto_size_text
:
^3.0.0
dev_dependencies
:
flutter_test
:
sdk
:
flutter
...
...
Prev
1
2
3
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment