Skip to content

Commit 42930d6

Browse files
committed
[doc] 更新版本 2.1
Signed-off-by: xiaweizi <1012126908@qq.com>
1 parent 853024e commit 42930d6

File tree

5 files changed

+12
-9
lines changed

5 files changed

+12
-9
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
### 体验
1212

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

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

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

3335
接下来多图警告

images/qrcode.png

2.71 KB
Loading

lib/views/pages/home/aqi_chart.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ class AqiChartPainter extends CustomPainter {
7676
var centerX = size.width / 2;
7777
var centerY = size.height / 2;
7878
var centerOffset = Offset(centerX, centerY);
79+
// 绘制半透明圆弧
7980
_path.reset();
8081
_path.addArc(Rect.fromCircle(center: centerOffset, radius: radius),
8182
pi * 0.7, pi * 1.6);
@@ -84,18 +85,19 @@ class AqiChartPainter extends CustomPainter {
8485
_paint.strokeCap = StrokeCap.round;
8586
_paint.color = Colors.white38;
8687
canvas.drawPath(_path, _paint);
88+
// 绘制纯白色圆弧
8789
_path.reset();
8890
_path.addArc(Rect.fromCircle(center: centerOffset, radius: radius),
8991
pi * 0.7, pi * 1.6 * ratio);
9092
_paint.color = Colors.white;
9193
canvas.drawPath(_path, _paint);
92-
94+
// 绘制 AQIValue
9395
var valuePara = UiUtils.getParagraph(value, 30);
9496
canvas.drawParagraph(
9597
valuePara,
9698
Offset(centerOffset.dx - valuePara.width / 2,
9799
centerOffset.dy - valuePara.height / 2));
98-
100+
// 绘制 AQIDesc
99101
var descPara = UiUtils.getParagraph("$desc", 15);
100102
canvas.drawParagraph(
101103
descPara,

lib/views/pages/home/day_forecast_detail.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,24 +189,23 @@ class DayPainter extends CustomPainter {
189189
canvas.drawParagraph(
190190
nightPara, Offset(startX - nightPara.width / 2, nightDescY));
191191

192-
// canvas.drawCircle(Offset(startX, topLineStartY), 5, _paint);
193-
// canvas.drawCircle(Offset(startX, topLineEndY), 5, _paint);
194-
// canvas.drawCircle(Offset(startX, bottomLineStartY), 5, _paint);
195-
// canvas.drawCircle(Offset(startX, bottomLineEndY), 5, _paint);
196192
_paint.color = Colors.white;
197193
var topOffset = Offset(startX, getTopLineY(element.dayTemp));
198194
var bottomOffset = Offset(startX, getBottomLineY(element.dayTemp));
199195
_paint.style = PaintingStyle.fill;
196+
// 绘制折线上的圆点
200197
canvas.drawCircle(topOffset, 3, _paint);
201198
canvas.drawCircle(bottomOffset, 3, _paint);
202199

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

208+
// 绘制折线
210209
if (index == 0) {
211210
_topPath.moveTo(topOffset.dx, topOffset.dy);
212211
_bottomPath.moveTo(bottomOffset.dx, bottomOffset.dy);

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
1515
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
1616
# Read more about iOS versioning at
1717
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
18-
version: 2.0.0+20
18+
version: 2.1.0+21
1919

2020
environment:
2121
sdk: ">=2.7.0 <3.0.0"

0 commit comments

Comments
 (0)