mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-05-16 05:02:21 -04:00
contacts ui cleanup
This commit is contained in:
parent
103975bb56
commit
19a366dcab
9 changed files with 84 additions and 39 deletions
|
@ -94,7 +94,7 @@ Future<void> showErrorModal(
|
|||
{required BuildContext context,
|
||||
required String title,
|
||||
required String text}) async {
|
||||
final theme = Theme.of(context);
|
||||
// final theme = Theme.of(context);
|
||||
// final scale = theme.extension<ScaleScheme>()!;
|
||||
// final scaleConfig = theme.extension<ScaleConfig>()!;
|
||||
|
||||
|
@ -144,7 +144,7 @@ Future<void> showWarningModal(
|
|||
{required BuildContext context,
|
||||
required String title,
|
||||
required String text}) async {
|
||||
final theme = Theme.of(context);
|
||||
// final theme = Theme.of(context);
|
||||
// final scale = theme.extension<ScaleScheme>()!;
|
||||
// final scaleConfig = theme.extension<ScaleConfig>()!;
|
||||
|
||||
|
@ -183,7 +183,7 @@ Future<void> showWarningWidgetModal(
|
|||
{required BuildContext context,
|
||||
required String title,
|
||||
required Widget child}) async {
|
||||
final theme = Theme.of(context);
|
||||
// final theme = Theme.of(context);
|
||||
// final scale = theme.extension<ScaleScheme>()!;
|
||||
// final scaleConfig = theme.extension<ScaleConfig>()!;
|
||||
|
||||
|
@ -222,7 +222,7 @@ Future<bool> showConfirmModal(
|
|||
{required BuildContext context,
|
||||
required String title,
|
||||
required String text}) async {
|
||||
final theme = Theme.of(context);
|
||||
// final theme = Theme.of(context);
|
||||
// final scale = theme.extension<ScaleScheme>()!;
|
||||
// final scaleConfig = theme.extension<ScaleConfig>()!;
|
||||
|
||||
|
|
|
@ -109,6 +109,22 @@ extension LabelExt on Widget {
|
|||
),
|
||||
child: this);
|
||||
}
|
||||
|
||||
Widget noEditDecoratorLabel(BuildContext context, String label,
|
||||
{ScaleColor? scale}) {
|
||||
final theme = Theme.of(context);
|
||||
final scaleScheme = theme.extension<ScaleScheme>()!;
|
||||
// final scaleConfig = theme.extension<ScaleConfig>()!;
|
||||
scale = scale ?? scaleScheme.primaryScale;
|
||||
|
||||
return Wrap(crossAxisAlignment: WrapCrossAlignment.center, children: [
|
||||
Text(
|
||||
'$label:',
|
||||
style: theme.textTheme.titleLarge!.copyWith(color: scale.border),
|
||||
).paddingLTRB(0, 0, 8, 8),
|
||||
this
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Widget buildProgressIndicator() => Builder(builder: (context) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue