You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -2663,43 +2702,47 @@ class _DesktopProviderDetailPaneState
2663
2702
bold:true,
2664
2703
),
2665
2704
constSizedBox(height:6),
2666
-
ConstrainedBox(
2667
-
constraints:constBoxConstraints(minHeight:120),
2668
-
child:Focus(
2669
-
onFocusChange: (has) async {
2670
-
if (!has) {
2671
-
final v = _saJsonCtrl.text;
2672
-
final old = sp.getProviderConfig(
2673
-
widget.providerKey,
2674
-
defaultName: widget.displayName,
2675
-
);
2676
-
await sp.setProviderConfig(
2677
-
widget.providerKey,
2678
-
old.copyWith(serviceAccountJson: v),
2679
-
);
2680
-
}
2681
-
},
2682
-
child:TextField(
2683
-
controller: _saJsonCtrl,
2684
-
maxLines:null,
2685
-
minLines:6,
2686
-
onChanged: (v) async {
2687
-
if (_saJsonCtrl.value.composing.isValid) return;
2688
-
final old = sp.getProviderConfig(
2689
-
widget.providerKey,
2690
-
defaultName: widget.displayName,
2691
-
);
2692
-
await sp.setProviderConfig(
2693
-
widget.providerKey,
2694
-
old.copyWith(serviceAccountJson: v),
2695
-
);
2696
-
},
2697
-
style:constTextStyle(fontSize:14),
2698
-
decoration:_inputDecoration(context).copyWith(
2699
-
hintText:'{\n "type": "service_account", ...\n}',
2705
+
Builder(
2706
+
builder: (innerCtx) {
2707
+
final rawMaxSaJsonHeight =computeInputMaxHeight(
2708
+
context: innerCtx,
2709
+
reservedHeight:260,
2710
+
softCapFraction:0.6,
2711
+
minHeight:120,
2712
+
);
2713
+
// TODO: computeInputMaxHeight already enforces minHeight; remove this redundant clamp (can be simplified to math.max) and keep the height logic consistent.
2714
+
final maxSaJsonHeight = rawMaxSaJsonHeight <120?120.0: rawMaxSaJsonHeight;
0 commit comments