File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change
1
+ // ignore_for_file: deprecated_member_use
2
+
1
3
import 'package:flutter/widgets.dart' ;
2
4
3
5
extension ColorExt on Color {
4
6
String toHex ({bool leadingHashSign = true , bool includeAlpha = false }) =>
5
7
'${leadingHashSign ? '#' : '' }'
6
- '${includeAlpha ? alpha .toRadixString (16 ).padLeft (2 , '0' ) : '' }'
7
- '${red .toRadixString (16 ).padLeft (2 , '0' )}'
8
- '${green .toRadixString (16 ).padLeft (2 , '0' )}'
9
- '${blue .toRadixString (16 ).padLeft (2 , '0' )}' ;
10
- }
8
+ '${includeAlpha ? alpha .toRadixString (16 ).padLeft (2 , '0' ) : '' }'
9
+ '${red .toRadixString (16 ).padLeft (2 , '0' )}'
10
+ '${green .toRadixString (16 ).padLeft (2 , '0' )}'
11
+ '${blue .toRadixString (16 ).padLeft (2 , '0' )}' ;
12
+ }
Original file line number Diff line number Diff line change 1
1
import 'dart:async' ;
2
2
import 'dart:io' ;
3
- import 'dart:ui' ;
4
3
import 'package:flutter/services.dart' ;
5
4
import './color_ext.dart' ;
6
5
@@ -78,6 +77,7 @@ class ScgatewayFlutterPlugin {
78
77
var setFlutterSdkVersion = await _channel.invokeMethod (
79
78
'setFlutterSdkVersion' ,
80
79
< String , dynamic > {"flutterSdkVersion" : _flutterPluginVersion});
80
+ print ("setFlutterSdkVersion: $setFlutterSdkVersion " );
81
81
} on PlatformException catch (e) {
82
82
print (e.stacktrace);
83
83
}
Original file line number Diff line number Diff line change 1
1
name : scgateway_flutter_plugin
2
2
description : Scgateway Flutter plugin.
3
3
version : 0.0.1-alpha.1
4
-
5
4
homepage : https://github.com/smallcase/gw-mob-sdk-flutter
6
5
7
6
# The following line prevents the package from being accidentally published to
You can’t perform that action at this time.
0 commit comments