fix restore ab afer pullAb (#7480)

* Opt ab name drop downdrop, more width

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2024-03-22 23:32:59 +08:00
committed by GitHub
parent 9558974080
commit 96c8d4de6a
2 changed files with 41 additions and 15 deletions

View File

@@ -1,5 +1,6 @@
import 'dart:math';
import 'package:auto_size_text/auto_size_text.dart';
import 'package:dropdown_button2/dropdown_button2.dart';
import 'package:dynamic_layouts/dynamic_layouts.dart';
import 'package:flutter/material.dart';
@@ -84,7 +85,7 @@ class _AddressBookState extends State<AddressBook> {
border: Border.all(
color: Theme.of(context).colorScheme.background)),
child: Container(
width: 180,
width: 200,
height: double.infinity,
padding: const EdgeInsets.all(8.0),
child: Column(
@@ -206,9 +207,12 @@ class _AddressBookState extends State<AddressBook> {
children: [
Expanded(
child: Tooltip(
message: e,
child: Text(gFFI.abModel.translatedName(e),
style: TextStyle(fontSize: 14))),
waitDuration: Duration(milliseconds: 500),
message: gFFI.abModel.translatedName(e),
child: AutoSizeText(
gFFI.abModel.translatedName(e),
maxFontSize: 14,
)),
),
],
)))