Skip to content

Commit fda36dc

Browse files
committed
📝 Make copyrights consistent
1 parent 9294fdf commit fda36dc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+168
-144
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
<!-- Copyright 2019 The FlutterCandies author. All rights reserved.
2+
Use of this source code is governed by an Apache license
3+
that can be found in the LICENSE file. -->
4+
15
# Changelog
26

37
## 7.1.2

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright [2020] [AlexV525]
189+
Copyright [2019] [FlutterCandies]
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

README-ZH.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
<!-- Copyright 2019 The FlutterCandies author. All rights reserved.
2+
Use of this source code is governed by an Apache license
3+
that can be found in the LICENSE file. -->
4+
15
# Flutter WeChat Assets Picker
26

37
[![pub package](https://img.shields.io/pub/v/wechat_assets_picker?color=42a012&label=%E7%A8%B3%E5%AE%9A%E7%89%88&logo=dart&style=flat-square)](https://pub.flutter-io.cn/packages/wechat_assets_picker)

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
<!-- Copyright 2019 The FlutterCandies author. All rights reserved.
2+
Use of this source code is governed by an Apache license
3+
that can be found in the LICENSE file. -->
4+
15
# Flutter WeChat Assets Picker
26

37
[![pub package](https://img.shields.io/pub/v/wechat_assets_picker?logo=dart&label=stable&style=flat-square)](https://pub.dev/packages/wechat_assets_picker)

example/lib/constants/custom_pick_method.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
///
2-
/// [Author] Alex (https://github.com/AlexV525)
2+
/// @Author Alex (https://github.com/AlexV525)
33
/// [Date] 2021/5/10 16:56
44
///
55
import 'package:flutter/widgets.dart';

example/lib/constants/extensions.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
///
2-
/// [Author] Alex (https://github.com/AlexV525)
2+
/// @Author Alex (https://github.com/AlexV525)
33
/// [Date] 2020/8/19 14:12
44
///
55
import 'package:flutter/material.dart'

example/lib/constants/page_mixin.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
///
2-
/// [Author] Alex (https://github.com/AlexV525)
2+
/// @Author Alex (https://github.com/AlexV525)
33
/// [Date] 2021/7/13 11:46
44
///
55
import 'package:flutter/widgets.dart';

example/lib/constants/picker_method.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
///
2-
/// [Author] Alex (https://github.com/Alex525)
2+
/// @Author Alex (https://github.com/AlexV525)
33
/// [Date] 2020-05-30 20:56
44
///
55
import 'package:flutter/material.dart';

example/lib/constants/screens.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
///
2-
/// [Author] Alex (https://github.com/AlexV525)
2+
/// @Author Alex (https://github.com/AlexV525)
33
/// [Date] 2020/8/19 10:29
44
///
55
import 'dart:ui' as ui;

example/lib/customs/custom_picker_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
///
2-
/// [Author] Alex (https://github.com/AlexV525)
2+
/// @Author Alex (https://github.com/AlexV525)
33
/// [Date] 2020-11-01 02:05
44
///
55
import 'package:flutter/material.dart';

example/lib/customs/pickers/directory_file_asset_picker.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
///
2-
/// [Author] Alex (https://github.com/AlexV525)
2+
/// @Author Alex (https://github.com/AlexV525)
33
/// [Date] 2021/5/10 16:44
44
///
55
import 'dart:io';

example/lib/customs/pickers/multi_tabs_assets_picker.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
///
2-
/// [Author] Alex (https://github.com/AlexV525)
2+
/// @Author Alex (https://github.com/AlexV525)
33
/// [Date] 2022/2/10 09:57
44
///
55
import 'dart:io';

example/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
///
2-
/// [Author] Alex (https://github.com/Alex525)
2+
/// @Author Alex (https://github.com/AlexV525)
33
/// [Date] 2020/5/30 15:39
44
///
55
import 'package:flutter/material.dart';

example/lib/pages/home_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
///
2-
/// [Author] Alex (https://github.com/Alex525)
2+
/// @Author Alex (https://github.com/AlexV525)
33
/// [Date] 2020-05-31 21:38
44
///
55
import 'package:flutter/material.dart';

example/lib/pages/multi_assets_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
///
2-
/// [Author] Alex (https://github.com/Alex525)
2+
/// @Author Alex (https://github.com/AlexV525)
33
/// [Date] 2020-05-31 20:21
44
///
55
import 'package:flutter/material.dart';

example/lib/pages/single_assets_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
///
2-
/// [Author] Alex (https://github.com/Alex525)
2+
/// @Author Alex (https://github.com/AlexV525)
33
/// [Date] 2020-05-31 21:17
44
///
55
import 'package:flutter/material.dart';

example/lib/pages/splash_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
///
2-
/// [Author] Alex (https://github.com/Alex525)
2+
/// @Author Alex (https://github.com/AlexV525)
33
/// [Date] 2020-05-31 21:36
44
///
55
import 'package:flutter/material.dart';

example/lib/widgets/asset_widget_builder.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
///
2-
/// [Author] Alex (https://github.com/AlexV525)
2+
/// @Author Alex (https://github.com/AlexV525)
33
/// [Date] 2021/7/13 10:40
44
///
55
import 'package:flutter/material.dart';

example/lib/widgets/method_list_view.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
///
2-
/// [Author] Alex (https://github.com/AlexV525)
2+
/// @Author Alex (https://github.com/AlexV525)
33
/// [Date] 2021/7/13 11:00
44
///
55
import 'package:flutter/material.dart';

example/lib/widgets/selected_assets_list_view.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
///
2-
/// [Author] Alex (https://github.com/AlexV525)
2+
/// @Author Alex (https://github.com/AlexV525)
33
/// [Date] 2021/7/13 10:51
44
///
55
import 'package:flutter/material.dart';

guides/migration_guide.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
<!-- Copyright 2019 The FlutterCandies author. All rights reserved.
2+
Use of this source code is governed by an Apache license
3+
that can be found in the LICENSE file. -->
4+
15
# Migration Guide
26

37
This document gathered all breaking changes and migrations requirement between major versions.

lib/src/constants/config.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
///
2-
/// [Author] Alex (https://github.com/AlexV525)
3-
/// [Date] 2022/2/14 13:25
4-
///
1+
// Copyright 2019 The FlutterCandies author. All rights reserved.
2+
// Use of this source code is governed by an Apache license that can be found
3+
// in the LICENSE file.
4+
55
import 'package:flutter/material.dart';
66
import 'package:photo_manager/photo_manager.dart';
77

@@ -173,8 +173,8 @@ class AssetPickerConfig {
173173
/// Whether the assets grid should revert.
174174
/// 判断资源网格是否需要倒序排列
175175
///
176-
/// [Null] means judging by [isAppleOS].
177-
/// 使用 [Null] 即使用 [isAppleOS] 进行判断
176+
/// [Null] means judging by Apple OS.
177+
/// 使用 [Null] 即使用是否为 Apple 系统进行判断
178178
final bool? shouldRevertGrid;
179179

180180
/// {@macro wechat_assets_picker.LimitedPermissionOverlayPredicate}

lib/src/constants/constants.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
///
2-
/// [Author] Alex (https://github.com/Alex525)
3-
/// [Date] 2020/3/31 16:02
4-
///
1+
// Copyright 2019 The FlutterCandies author. All rights reserved.
2+
// Use of this source code is governed by an Apache license that can be found
3+
// in the LICENSE file.
4+
55
import 'package:flutter/painting.dart';
66
import 'package:photo_manager/photo_manager.dart';
77

lib/src/constants/custom_scroll_physics.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
///
2-
/// [Author] Alex (https://github.com/Alex525)
3-
/// [Date] 2020/3/31 17:34
4-
///
1+
// Copyright 2019 The FlutterCandies author. All rights reserved.
2+
// Use of this source code is governed by an Apache license that can be found
3+
// in the LICENSE file.
4+
55
import 'package:flutter/cupertino.dart';
66
import 'package:flutter/physics.dart';
77

lib/src/constants/enums.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
///
2-
/// [Author] Alex (https://github.com/Alex525)
3-
/// [Date] 2020/7/8 12:32
4-
///
1+
// Copyright 2019 The FlutterCandies author. All rights reserved.
2+
// Use of this source code is governed by an Apache license that can be found
3+
// in the LICENSE file.
54

65
/// Provide some special picker types to integrate
76
/// un-common pick pattern.

lib/src/constants/extensions.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
///
2-
/// [Author] Alex (https://github.com/AlexV525)
3-
/// [Date] 2020/8/19 10:34
4-
///
1+
// Copyright 2019 The FlutterCandies author. All rights reserved.
2+
// Use of this source code is governed by an Apache license that can be found
3+
// in the LICENSE file.
4+
55
import 'package:flutter/material.dart';
66
import 'package:provider/provider.dart';
77

lib/src/constants/typedefs.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
///
2-
/// [Author] Alex (https://github.com/AlexV525)
3-
/// [Date] 2022/3/3 09:55
4-
///
1+
// Copyright 2019 The FlutterCandies author. All rights reserved.
2+
// Use of this source code is governed by an Apache license that can be found
3+
// in the LICENSE file.
4+
55
import 'dart:async';
66

77
import 'package:flutter/widgets.dart';

lib/src/delegates/asset_picker_builder_delegate.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
///
2-
/// [Author] Alex (https://github.com/AlexV525)
3-
/// [Date] 2020-10-29 21:50
4-
///
1+
// Copyright 2019 The FlutterCandies author. All rights reserved.
2+
// Use of this source code is governed by an Apache license that can be found
3+
// in the LICENSE file.
4+
55
import 'dart:async';
66
import 'dart:io';
77
import 'dart:math' as math;

lib/src/delegates/asset_picker_delegate.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
///
2-
/// [Author] Alex (https://github.com/AlexV525)
3-
/// [Date] 2022/05/05 11:25
4-
///
1+
// Copyright 2019 The FlutterCandies author. All rights reserved.
2+
// Use of this source code is governed by an Apache license that can be found
3+
// in the LICENSE file.
4+
55
// ignore_for_file: deprecated_member_use
66
import 'package:flutter/material.dart';
77
import 'package:flutter/services.dart';
@@ -151,7 +151,7 @@ class AssetPickerDelegate {
151151
/// {@template wechat_assets_picker.delegates.AssetPickerDelegate.registerObserve}
152152
/// Register observe callback with assets changes.
153153
/// 注册资源(图库)变化的监听回调
154-
/// @{endtemplate}
154+
/// {@endtemplate}
155155
void registerObserve([ValueChanged<MethodCall>? callback]) {
156156
if (callback == null) {
157157
return;
@@ -167,7 +167,7 @@ class AssetPickerDelegate {
167167
/// {@template wechat_assets_picker.delegates.AssetPickerDelegate.unregisterObserve}
168168
/// Unregister the observation callback with assets changes.
169169
/// 取消注册资源(图库)变化的监听回调
170-
/// @{endtemplate}
170+
/// {@endtemplate}
171171
void unregisterObserve([ValueChanged<MethodCall>? callback]) {
172172
if (callback == null) {
173173
return;

lib/src/delegates/asset_picker_text_delegate.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
///
2-
/// [Author] Alex (https://github.com/Alex525)
3-
/// [Date] 2020/4/7 10:25
4-
///
1+
// Copyright 2019 The FlutterCandies author. All rights reserved.
2+
// Use of this source code is governed by an Apache license that can be found
3+
// in the LICENSE file.
4+
55
import 'dart:io' show Platform;
66

77
import 'package:flutter/rendering.dart';

lib/src/delegates/asset_picker_viewer_builder_delegate.dart

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
///
2-
/// [Author] Alex (https://github.com/AlexV525)
3-
/// [Date] 2020-10-31 00:15
4-
///
1+
// Copyright 2019 The FlutterCandies author. All rights reserved.
2+
// Use of this source code is governed by an Apache license that can be found
3+
// in the LICENSE file.
4+
55
import 'dart:async';
66
import 'dart:io';
77
import 'dart:math' as math;
@@ -77,9 +77,9 @@ abstract class AssetPickerViewerBuilderDelegate<Asset, Path> {
7777
/// 用于更新当前正在浏览的资源页码的流控制器
7878
///
7979
/// The main purpose is to narrow down build parts when index is changing,
80-
/// prevent widely [setState] and causing other widgets rebuild.
80+
/// prevent widely [State.setState] and causing other widgets rebuild.
8181
/// 使用 [StreamController] 的主要目的是缩小页码变化时构建组件的范围,
82-
/// 防止滥用 [setState] 导致其他部件重新构建。
82+
/// 防止滥用 [State.setState] 导致其他部件重新构建。
8383
final StreamController<int> pageStreamController =
8484
StreamController<int>.broadcast();
8585

@@ -157,8 +157,8 @@ abstract class AssetPickerViewerBuilderDelegate<Asset, Path> {
157157
AssetPickerTextDelegate get semanticsTextDelegate =>
158158
Singleton.textDelegate.semanticsTextDelegate;
159159

160-
/// Call when viewer is calling [initState].
161-
/// 当预览器调用 [initState] 时注册 [State][TickerProvider]
160+
/// Call when viewer is calling [State.initState].
161+
/// 当预览器调用 [State.initState] 时注册 [State][TickerProvider]
162162
void initStateAndTicker(
163163
AssetPickerViewerState<Asset, Path> s,
164164
TickerProvider v,
@@ -321,7 +321,7 @@ abstract class AssetPickerViewerBuilderDelegate<Asset, Path> {
321321
return loader;
322322
}
323323

324-
/// The item widget when [AssetEntity.thumbData] load failed.
324+
/// The item widget when [AssetEntity.thumbnailData] load failed.
325325
/// 资源缩略数据加载失败时使用的部件
326326
Widget failedItemBuilder(BuildContext context) {
327327
return Center(

lib/src/delegates/sort_path_delegate.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
///
2-
/// [Author] Alex (https://github.com/Alex525)
3-
/// [Date] 2020-05-30 13:08
4-
///
1+
// Copyright 2019 The FlutterCandies author. All rights reserved.
2+
// Use of this source code is governed by an Apache license that can be found
3+
// in the LICENSE file.
4+
55
import 'package:photo_manager/photo_manager.dart';
66

77
/// Delegate to sort asset path entities.

lib/src/internal/methods.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
///
2-
/// [Author] Alex (https://github.com/AlexV525)
3-
/// [Date] 2022/2/6 14:57
4-
///
1+
// Copyright 2019 The FlutterCandies author. All rights reserved.
2+
// Use of this source code is governed by an Apache license that can be found
3+
// in the LICENSE file.
4+
55
import 'dart:developer';
66

77
import 'package:flutter/foundation.dart';

lib/src/internal/singleton.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
///
2-
/// [Author] Alex (https://github.com/AlexV525)
3-
/// [Date] 2022/2/6 14:54
4-
///
5-
/// Define an inner static singleton for picker libraries.
1+
// Copyright 2019 The FlutterCandies author. All rights reserved.
2+
// Use of this source code is governed by an Apache license that can be found
3+
// in the LICENSE file.
4+
65
import 'package:flutter/widgets.dart';
76

87
import '../delegates/asset_picker_text_delegate.dart';
98
import '../delegates/sort_path_delegate.dart';
109

10+
/// Define an inner static singleton for picker libraries.
1111
class Singleton {
1212
const Singleton._();
1313

lib/src/provider/asset_picker_provider.dart

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
///
2-
/// [Author] Alex (https://github.com/Alex525)
3-
/// [Date] 2020/3/31 15:28
4-
///
1+
// Copyright 2019 The FlutterCandies author. All rights reserved.
2+
// Use of this source code is governed by an Apache license that can be found
3+
// in the LICENSE file.
4+
55
import 'dart:math' as math;
66
import 'dart:typed_data';
77

88
import 'package:flutter/material.dart';
99
import 'package:photo_manager/photo_manager.dart';
10+
import 'package:provider/provider.dart';
1011

1112
import '../constants/constants.dart';
1213
import '../delegates/sort_path_delegate.dart';

0 commit comments

Comments
 (0)