"ios/Flutter/Pro.xcconfig" did not exist on "36ac8d24573a2935dfb9f560f19ff53c6e9c76bd"
Commit b75a9279 authored by DatHV's avatar DatHV
Browse files

update config, build.

parent 36ac8d24
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,
......
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment