Skip to content

Commit

Permalink
[doc] 更新版本 2.1
Browse files Browse the repository at this point in the history
Signed-off-by: xiaweizi <[email protected]>
  • Loading branch information
xiaweizi committed Sep 5, 2020
1 parent 853024e commit 42930d6
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

### 体验

点击[下载链接](http://xiaweizi.top/SimplicityWeather-2_0.apk)下载
点击[下载链接](http://xiaweizi.top/SimplicityWeather-2_1.apk)下载

或者直接扫描二维码抢先体验

Expand All @@ -27,7 +27,9 @@
- [x] 丰富的生活指数
- [x] 台风路径
- [x] 背景高斯模糊
- [x] 丰富多样的天气背景效果
- [x] 动态降雨卡片
- [x] 自动更新
- [x] 丰富多样的天气背景效果(雷暴效果)
- [x] **一键换天**,做天气之子

接下来多图警告
Expand Down
Binary file modified images/qrcode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions lib/views/pages/home/aqi_chart.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ class AqiChartPainter extends CustomPainter {
var centerX = size.width / 2;
var centerY = size.height / 2;
var centerOffset = Offset(centerX, centerY);
// 绘制半透明圆弧
_path.reset();
_path.addArc(Rect.fromCircle(center: centerOffset, radius: radius),
pi * 0.7, pi * 1.6);
Expand All @@ -84,18 +85,19 @@ class AqiChartPainter extends CustomPainter {
_paint.strokeCap = StrokeCap.round;
_paint.color = Colors.white38;
canvas.drawPath(_path, _paint);
// 绘制纯白色圆弧
_path.reset();
_path.addArc(Rect.fromCircle(center: centerOffset, radius: radius),
pi * 0.7, pi * 1.6 * ratio);
_paint.color = Colors.white;
canvas.drawPath(_path, _paint);

// 绘制 AQIValue
var valuePara = UiUtils.getParagraph(value, 30);
canvas.drawParagraph(
valuePara,
Offset(centerOffset.dx - valuePara.width / 2,
centerOffset.dy - valuePara.height / 2));

// 绘制 AQIDesc
var descPara = UiUtils.getParagraph("$desc", 15);
canvas.drawParagraph(
descPara,
Expand Down
7 changes: 3 additions & 4 deletions lib/views/pages/home/day_forecast_detail.dart
Original file line number Diff line number Diff line change
Expand Up @@ -189,24 +189,23 @@ class DayPainter extends CustomPainter {
canvas.drawParagraph(
nightPara, Offset(startX - nightPara.width / 2, nightDescY));

// canvas.drawCircle(Offset(startX, topLineStartY), 5, _paint);
// canvas.drawCircle(Offset(startX, topLineEndY), 5, _paint);
// canvas.drawCircle(Offset(startX, bottomLineStartY), 5, _paint);
// canvas.drawCircle(Offset(startX, bottomLineEndY), 5, _paint);
_paint.color = Colors.white;
var topOffset = Offset(startX, getTopLineY(element.dayTemp));
var bottomOffset = Offset(startX, getBottomLineY(element.dayTemp));
_paint.style = PaintingStyle.fill;
// 绘制折线上的圆点
canvas.drawCircle(topOffset, 3, _paint);
canvas.drawCircle(bottomOffset, 3, _paint);

// 绘制圆点上下的温度值
var topTempPara = UiUtils.getParagraph("${element.dayTemp}°", mainTextSize, itemWidth: itemWith);
canvas.drawParagraph(
topTempPara, Offset(topOffset.dx - topTempPara.width / 2, topOffset.dy - topTempPara.height - 5));
var bottomTempPara = UiUtils.getParagraph("${element.dayTemp}°", mainTextSize, itemWidth: itemWith);
canvas.drawParagraph(
bottomTempPara, Offset(bottomOffset.dx - bottomTempPara.width / 2, bottomOffset.dy + 5));

// 绘制折线
if (index == 0) {
_topPath.moveTo(topOffset.dx, topOffset.dy);
_bottomPath.moveTo(bottomOffset.dx, bottomOffset.dy);
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 2.0.0+20
version: 2.1.0+21

environment:
sdk: ">=2.7.0 <3.0.0"
Expand Down

0 comments on commit 42930d6

Please sign in to comment.