Skip to content

Commit 77b3449

Browse files
chore(scg): address pub publish warnings
1 parent 782f104 commit 77b3449

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

scgateway/lib/color_ext.dart

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
// ignore_for_file: deprecated_member_use
2+
13
import 'package:flutter/widgets.dart';
24

35
extension 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+
}

scgateway/lib/scgateway_flutter_plugin.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import 'dart:async';
22
import 'dart:io';
3-
import 'dart:ui';
43
import 'package:flutter/services.dart';
54
import './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
}

scgateway/pubspec.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: scgateway_flutter_plugin
22
description: Scgateway Flutter plugin.
33
version: 0.0.1-alpha.1
4-
54
homepage: https://github.com/smallcase/gw-mob-sdk-flutter
65

76
# The following line prevents the package from being accidentally published to

0 commit comments

Comments
 (0)