more cleanup

This commit is contained in:
Christien Rioux 2023-09-23 22:32:27 -04:00
parent cd8f5aebcb
commit 03c6560e60

View File

@ -1,4 +1,5 @@
import 'dart:async'; import 'dart:async';
import 'dart:math';
import 'package:awesome_extensions/awesome_extensions.dart'; import 'package:awesome_extensions/awesome_extensions.dart';
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
@ -134,8 +135,8 @@ class SendInviteDialogState extends ConsumerState<SendInviteDialog> {
// ignore: prefer_expression_function_bodies // ignore: prefer_expression_function_bodies
Widget build(BuildContext context) { Widget build(BuildContext context) {
final windowSize = MediaQuery.of(context).size; final windowSize = MediaQuery.of(context).size;
final maxDialogHeight = windowSize.height - 64; final maxDialogWidth = min(windowSize.width - 64.0, 800.0 - 64.0);
final maxDialogWidth = windowSize.width - 64; final maxDialogHeight = windowSize.height - 64.0;
final theme = Theme.of(context); final theme = Theme.of(context);
//final scale = theme.extension<ScaleScheme>()!; //final scale = theme.extension<ScaleScheme>()!;