瀏覽代碼

format code

Caijinglong 5 年之前
父節點
當前提交
951fd56de3
共有 3 個文件被更改,包括 5 次插入4 次删除
  1. 2
    1
      example/lib/main.dart
  2. 2
    1
      example/lib/preview.dart
  3. 1
    2
      lib/src/ui/page/photo_main_page.dart

+ 2
- 1
example/lib/main.dart 查看文件

@@ -1,9 +1,10 @@
1
-import 'package:example/preview.dart';
2 1
 import 'package:flutter/cupertino.dart';
3 2
 import 'package:flutter/material.dart';
4 3
 import 'package:photo/photo.dart';
5 4
 import 'package:photo_manager/photo_manager.dart';
6 5
 
6
+import './preview.dart';
7
+
7 8
 void main() => runApp(new MyApp());
8 9
 
9 10
 class MyApp extends StatelessWidget {

+ 2
- 1
example/lib/preview.dart 查看文件

@@ -1,7 +1,8 @@
1
-import 'package:example/asset_image.dart';
2 1
 import 'package:flutter/material.dart';
3 2
 import 'package:photo_manager/photo_manager.dart';
4 3
 
4
+import './asset_image.dart';
5
+
5 6
 class PreviewPage extends StatelessWidget {
6 7
   final List<AssetEntity> list;
7 8
 

+ 1
- 2
lib/src/ui/page/photo_main_page.dart 查看文件

@@ -361,7 +361,7 @@ class _PhotoMainPageState extends State<PhotoMainPage>
361 361
   void _onGalleryChange(AssetPathEntity assetPathEntity) {
362 362
     _currentPath = assetPathEntity;
363 363
 
364
-    _currentPath.assetList.then((v)async {
364
+    _currentPath.assetList.then((v) async {
365 365
       _sortAssetList(v);
366 366
       list.clear();
367 367
       list.addAll(v);
@@ -500,5 +500,4 @@ class _PhotoMainPageState extends State<PhotoMainPage>
500 500
     // Not deleted
501 501
     _onGalleryChange(this.currentPath);
502 502
   }
503
-
504 503
 }