@@ -56,7 +56,8 @@ class _HomePageState extends State<HomePage> {
5656
5757 @override
5858 void initState () {
59- PaystackPlugin .initialize (publicKey: paystackPublicKey, secretKey: paystackSecretKey);
59+ PaystackPlugin .initialize (
60+ publicKey: paystackPublicKey, secretKey: paystackSecretKey);
6061 super .initState ();
6162 }
6263
@@ -80,21 +81,22 @@ class _HomePageState extends State<HomePage> {
8081 child: const Text ('Initalize transaction from:' ),
8182 ),
8283 new Expanded (
83- child:
84- new Column (mainAxisSize: MainAxisSize .min, children: < Widget > [
85- new RadioListTile <int >(
86- value: 0 ,
87- groupValue: _radioValue,
88- onChanged: _handleRadioValueChanged,
89- title: const Text ('Local' ),
90- ),
91- new RadioListTile <int >(
92- value: 1 ,
93- groupValue: _radioValue,
94- onChanged: _handleRadioValueChanged,
95- title: const Text ('Server' ),
96- ),
97- ]),
84+ child: new Column (
85+ mainAxisSize: MainAxisSize .min,
86+ children: < Widget > [
87+ new RadioListTile <int >(
88+ value: 0 ,
89+ groupValue: _radioValue,
90+ onChanged: _handleRadioValueChanged,
91+ title: const Text ('Local' ),
92+ ),
93+ new RadioListTile <int >(
94+ value: 1 ,
95+ groupValue: _radioValue,
96+ onChanged: _handleRadioValueChanged,
97+ title: const Text ('Server' ),
98+ ),
99+ ]),
98100 )
99101 ],
100102 ),
@@ -155,7 +157,8 @@ class _HomePageState extends State<HomePage> {
155157 : new Column (
156158 mainAxisSize: MainAxisSize .min,
157159 children: < Widget > [
158- _getPlatformButton ('Charge Card' , () => _startAfreshCharge ()),
160+ _getPlatformButton (
161+ 'Charge Card' , () => _startAfreshCharge ()),
159162 _verticalSizeBox,
160163 _border,
161164 new SizedBox (
@@ -184,7 +187,8 @@ class _HomePageState extends State<HomePage> {
184187 });
185188 },
186189 items: banks.map ((String value) {
187- return new DropdownMenuItem <CheckoutMethod >(
190+ return new DropdownMenuItem <
191+ CheckoutMethod >(
188192 value: _parseStringToMethod (value),
189193 child: new Text (value),
190194 );
@@ -213,7 +217,8 @@ class _HomePageState extends State<HomePage> {
213217 );
214218 }
215219
216- void _handleRadioValueChanged (int value) => setState (() => _radioValue = value);
220+ void _handleRadioValueChanged (int value) =>
221+ setState (() => _radioValue = value);
217222
218223 _handleCheckout () async {
219224 if (_method == null ) {
@@ -416,11 +421,12 @@ class _HomePageState extends State<HomePage> {
416421 }
417422
418423 _updateStatus (String reference, String message) {
419- _showMessage (
420- 'Reference: $ reference \n\ Response: $ message ' , const Duration (seconds: 7 ));
424+ _showMessage ('Reference: $ reference \n\ Response: $ message ' ,
425+ const Duration (seconds: 7 ));
421426 }
422427
423- _showMessage (String message, [Duration duration = const Duration (seconds: 4 )]) {
428+ _showMessage (String message,
429+ [Duration duration = const Duration (seconds: 4 )]) {
424430 _scaffoldKey.currentState.showSnackBar (new SnackBar (
425431 content: new Text (message),
426432 duration: duration,
0 commit comments