File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ // ignore_for_file: deprecated_member_use
2+
13import 'package:flutter/widgets.dart' ;
24
35extension ColorExt on Color {
46 String toHex ({bool leadingHashSign = true , bool includeAlpha = false }) =>
57 '${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 11import 'dart:async' ;
22import 'dart:io' ;
3- import 'dart:ui' ;
43import 'package:flutter/services.dart' ;
54import './color_ext.dart' ;
65
@@ -78,6 +77,7 @@ class ScgatewayFlutterPlugin {
7877 var setFlutterSdkVersion = await _channel.invokeMethod (
7978 'setFlutterSdkVersion' ,
8079 < String , dynamic > {"flutterSdkVersion" : _flutterPluginVersion});
80+ print ("setFlutterSdkVersion: $setFlutterSdkVersion " );
8181 } on PlatformException catch (e) {
8282 print (e.stacktrace);
8383 }
Original file line number Diff line number Diff line change 11name : scgateway_flutter_plugin
22description : Scgateway Flutter plugin.
33version : 0.0.1-alpha.1
4- author : gatewaytech@smallcase.com
54homepage : https://github.com/smallcase/gw-mob-sdk-flutter
65
76# The following line prevents the package from being accidentally published to
You can’t perform that action at this time.
0 commit comments