Skip to content

Commit 1de4aea

Browse files
committed
app: Fix build errors.
1 parent 5c7b0f3 commit 1de4aea

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

gui-orchid/lib/orchid/account/account_selector.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,14 +213,14 @@ class AccountSelectorDialog extends StatelessWidget {
213213

214214
@override
215215
Widget build(BuildContext context) {
216-
final size = AppSize(context).size;
216+
final appHeight = AppHeight(context).height;
217217
final cardHeight = 152.0;
218218
final spacing = 24.0;
219219
final ypad = 32.0;
220220
final intrinsicHeight = accounts.length * cardHeight +
221221
(accounts.length - 1) * spacing +
222222
2 * ypad;
223-
final height = min(size.height * 0.7, intrinsicHeight);
223+
final height = min(appHeight * 0.7, intrinsicHeight);
224224

225225
return SizedBox(
226226
height: height,

gui-orchid/lib/pages/connect/connect_page.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -596,11 +596,11 @@ class _ConnectPageState extends State<ConnectPage>
596596
}
597597

598598
bool get isShort {
599-
return AppSize(context).shorterThan(Size(0, 700));
599+
return AppHeight(context).shorterThan(Size(0, 700));
600600
}
601601

602602
bool get isReallyShort {
603-
return AppSize(context).shorterThan(Size(0, 590));
603+
return AppHeight(context).shorterThan(Size(0, 590));
604604
}
605605

606606
@override

gui-orchid/lib/pages/purchase/purchase_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class _PurchasePageState extends State<PurchasePage> {
9898
constraints: BoxConstraints(maxWidth: 500),
9999
child: Column(
100100
children: <Widget>[
101-
if (AppSize(context)
101+
if (AppHeight(context)
102102
.tallerThan(AppSize.iphone_12_pro_max))
103103
pady(64),
104104
pady(12),

0 commit comments

Comments
 (0)