@@ -6,6 +6,7 @@ import 'package:get_10101/common/application/lsp_change_notifier.dart';
6
6
import 'package:get_10101/common/domain/model.dart' ;
7
7
import 'package:get_10101/common/value_data_row.dart' ;
8
8
import 'package:get_10101/features/trade/domain/channel_opening_params.dart' ;
9
+ import 'package:go_router/go_router.dart' ;
9
10
import 'package:provider/provider.dart' ;
10
11
import 'package:slide_to_confirm/slide_to_confirm.dart' ;
11
12
@@ -45,7 +46,7 @@ channelConfiguration({
45
46
},
46
47
child: SingleChildScrollView (
47
48
child: SizedBox (
48
- height: 425 ,
49
+ height: 455 ,
49
50
child: ChannelConfiguration (
50
51
marginTrader: marginTrader,
51
52
orderMatchingFee: orderMatchingFee,
@@ -127,7 +128,7 @@ class _ChannelConfiguration extends State<ChannelConfiguration> {
127
128
return Form (
128
129
key: _formKey,
129
130
child: Container (
130
- padding: const EdgeInsets .all ( 20 ),
131
+ padding: const EdgeInsets .only (top : 20 , left : 20 , right : 20 ),
131
132
child: Column (children: [
132
133
const Text ("DLC Channel Configuration" ,
133
134
style: TextStyle (fontWeight: FontWeight .bold, fontSize: 17 )),
@@ -237,9 +238,7 @@ class _ChannelConfiguration extends State<ChannelConfiguration> {
237
238
"DLC channel with you, creating your position in the process." ,
238
239
style: DefaultTextStyle .of (context).style,
239
240
)),
240
- const SizedBox (
241
- height: 10 ,
242
- ),
241
+ const SizedBox (height: 40 ),
243
242
// FIXME: The slider is disabled by default, even if the default values are okay.
244
243
AbsorbPointer (
245
244
absorbing: _formKey.currentState != null
@@ -252,11 +251,12 @@ class _ChannelConfiguration extends State<ChannelConfiguration> {
252
251
color: Colors .white,
253
252
size: 20 ,
254
253
),
255
- onConfirmation: () => {
256
- widget.onConfirmation (ChannelOpeningParams (
257
- coordinatorReserve: counterpartyReserve,
258
- traderReserve: ownReserve))
259
- }))
254
+ onConfirmation: () {
255
+ GoRouter .of (context).pop ();
256
+ widget.onConfirmation (ChannelOpeningParams (
257
+ coordinatorReserve: counterpartyReserve,
258
+ traderReserve: ownReserve));
259
+ }))
260
260
],
261
261
),
262
262
),
0 commit comments