mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2026-02-16 14:29:35 +00:00
更改appName等常量为全局变量
This commit is contained in:
parent
896f8837bd
commit
e2aa73c01c
35 changed files with 167 additions and 216 deletions
|
|
@ -3,7 +3,7 @@ import 'package:flutter_hooks/flutter_hooks.dart';
|
|||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||
import 'package:vaani/api/api_provider.dart';
|
||||
import 'package:vaani/generated/l10n.dart';
|
||||
import 'package:vaani/main.dart';
|
||||
import 'package:vaani/globals.dart';
|
||||
|
||||
final httpUrlRegExp = RegExp('https?://');
|
||||
|
||||
|
|
|
|||
|
|
@ -94,11 +94,15 @@ class ExpandableDescription extends HookWidget {
|
|||
child: Html(
|
||||
data: '<div class="vaani-ellipsis">$content</div>',
|
||||
style: {
|
||||
"div": Style(
|
||||
maxLines: isDescExpanded.value ? null : 3,
|
||||
textOverflow: TextOverflow.ellipsis,
|
||||
fontStyle: textTheme.bodyMedium?.fontStyle,
|
||||
),
|
||||
"div.vaani-ellipsis": !isDescExpanded.value
|
||||
? Style(
|
||||
maxLines: 3,
|
||||
textOverflow: TextOverflow.ellipsis,
|
||||
fontStyle: textTheme.bodyMedium?.fontStyle,
|
||||
)
|
||||
: Style(
|
||||
fontStyle: textTheme.bodyMedium?.fontStyle,
|
||||
),
|
||||
},
|
||||
),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue