Skip to content

Commit

Permalink
Update dart-sdk version
Browse files Browse the repository at this point in the history
  • Loading branch information
神楽坂花火 committed Mar 27, 2020
1 parent 81e9e33 commit ac0c2e0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
17 changes: 14 additions & 3 deletions lib/utils/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import 'dart:async';
import 'dart:io';

import 'package:dailypics/extension.dart';
import 'package:dailypics/misc/bean.dart';
import 'package:dailypics/utils/http.dart';
import 'package:dio/dio.dart';
Expand Down Expand Up @@ -55,21 +54,33 @@ class SystemUtils {
await _channel.invokeMethod('openAppSettings');
}

static Future<void> makeH2Wallpaper(
/*static Future<void> makeH2Wallpaper(
Size size,
Offset offset,
Color backgroundColor,
File backgroundImage,
double backgroundBlurRadius,
Color dockBarColor,
Color shadowColor,
double shadowRadius,
Offset shadowOffset,
double borderRadius,
) async {
await _channel.invokeMethod('makeH2Wallpaper', {
'width': size.width,
'height': size.height,
'offsetX': offset.dx,
'offsetY': offset.dy,
'background': backgroundColor != null ? backgroundColor.hexString : backgroundImage.path,
'backgroundBlurRadius': backgroundColor != null ? null : backgroundBlurRadius,
'dockBarColor': dockBarColor.hexString,
'shadowColor': shadowColor.hexString,
'shadowRadius': shadowRadius,
'shadowOffsetX': shadowOffset.dx,
'shadowOffsetY': shadowOffset.dy,
'borderRadius': borderRadius,
});
}
}*/

static Future<void> openUrl(String url) {
return launch(url, forceSafariVC: false, forceWebView: false);
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: dailypics
description: A new Flutter application.
version: 2.1.6+200322
version: 2.2.7+200325

environment:
sdk: ">=2.3.0 <3.0.0"
sdk: ">=2.6.0 <3.0.0"
flutter: ">=1.12.13 <2.0.0"

dependencies:
Expand Down

0 comments on commit ac0c2e0

Please sign in to comment.