فهرست منبع

修改图片等

dengmeiying 2 سال پیش
والد
کامیت
8c403f0e34

+ 1 - 1
android/app/src/main/AndroidManifest.xml

@@ -12,7 +12,7 @@ xmlns:tools="http://schemas.android.com/tools"
     <uses-permission android:name="android.permission.CAMERA"/>
     <uses-permission android:name="android.permission.GALLERY"/>
    <application
-        android:label="非常合拍"
+        android:label="趣味自拍"
         android:name="${applicationName}"
         android:icon="@mipmap/ic_launcher">
         <activity

BIN
android/app/src/main/res/mipmap-hdpi/ic_launcher.png


BIN
android/app/src/main/res/mipmap-mdpi/ic_launcher.png


BIN
android/app/src/main/res/mipmap-xhdpi/ic_launcher.png


BIN
android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png


BIN
android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png


+ 1 - 1
lib/pages/home/add_news.dart

@@ -151,7 +151,7 @@ class _AddNewsPageState extends State<AddNewsPage> {
 
   Future selectImage(BuildContext context) async {
     bool result = await permissionCheckAndRequest(context, "通知");
-    if (result) debugPrint("已拥有该权限");
+    if (result) CommonToast.okToast("已拥有该权限");
     XFile? image = await _imagePicker.pickImage(source: ImageSource.gallery);
     if (image == null) return;
     final File filePath = File(image.path);

+ 5 - 9
lib/pages/home/index.dart

@@ -23,12 +23,6 @@ class _HomePageState extends State<HomePage> {
     super.initState();
     // 初始化的时候开启倒计时
     getList();
-    // _controller.addListener(() {
-    //   if (_controller.position.pixels >
-    //       _controller.position.maxScrollExtent - 40) {
-    //     onRefresh();
-    //   }
-    // });
   }
 
   @override
@@ -118,9 +112,11 @@ class _HomePageState extends State<HomePage> {
           },
         ),
       ),
-      drawer: const Drawer(
-        child: DrawerModalPage(),
-      ),
+      drawer: const SizedBox(
+          width: 500,
+          child: Drawer(
+            child: DrawerModalPage(),
+          )),
     );
   }
 

+ 1 - 4
lib/pages/home/news_detail.dart

@@ -1,5 +1,4 @@
 import 'package:flutter/material.dart';
-// import 'package:share_plus/share_plus.dart';
 import 'package:fun_selfie_app/utils/common_toast.dart';
 
 class NewsDetailPage extends StatefulWidget {
@@ -30,11 +29,9 @@ class _NewsDetailPageState extends State<NewsDetailPage> {
         child: Scaffold(
             appBar: AppBar(title: const Text('活动详情'), actions: <Widget>[
               IconButton(
-                icon: const Icon(Icons.share_sharp),
+                icon: const Icon(Icons.edit_outlined),
                 onPressed: () async {
                   CommonToast.okToast('点击了分享');
-                  // await Share.share('我正在使用非常合拍即图APP, 来一起使用吧。',
-                  //     subject: 'Look what I顶顶顶顶 made!');
                 },
               ),
               Padding(

+ 3 - 3
lib/pages/home/setting.dart

@@ -30,7 +30,7 @@ class _DrawerModalPageState extends State<DrawerModalPage> {
         Container(
             height: screenSize.height / 2,
             color: const Color(0xff009EBA),
-            padding: const EdgeInsetsDirectional.only(top: 80),
+            padding: const EdgeInsetsDirectional.only(top: 60),
             alignment: Alignment.center,
             child: Column(
               children: <Widget>[
@@ -38,8 +38,8 @@ class _DrawerModalPageState extends State<DrawerModalPage> {
                   child: Image(
                     image: AssetImage('static/images/login_bg.png'),
                     fit: BoxFit.fill,
-                    width: 200,
-                    height: 200,
+                    width: 300,
+                    height: 300,
                   ),
                 ),
                 const SizedBox(height: 30),

+ 0 - 1
lib/pages/photography/index.dart

@@ -1,5 +1,4 @@
 import 'package:flutter/material.dart';
-import 'package:fun_selfie_app/utils/common_toast.dart';
 import 'package:fun_selfie_app/widgets/home_button.dart';
 
 class PhotographyPage extends StatefulWidget {

+ 0 - 2
lib/utils/api.dart

@@ -2,7 +2,6 @@ import 'package:fun_selfie_app/dio_util/dio_util.dart';
 
 class UtilHelper {
   static updateList(params) async {
-    // DioUtil.getInstance()?.openLog();
     var result = await DioUtil().request(
       "pad/deliver/deliverOrder/list",
       method: 'get',
@@ -12,7 +11,6 @@ class UtilHelper {
   }
 
   static updatePackingList(params) async {
-    // DioUtil.getInstance()?.openLog();
     var result = await DioUtil().request(
       "pad/produce/worklineJob/list",
       method: 'get',

+ 1 - 2
pubspec.yaml

@@ -1,5 +1,5 @@
 name: fun_selfie_app
-description: A new Flutter project.
+description: 趣味自拍APP.
 publish_to: 'none'
 version: 1.0.1
 environment:
@@ -20,7 +20,6 @@ dependencies:
   crypto: ^3.0.3 # md5
   date_format: ^2.0.7
   permission_handler: ^10.4.3 #相册权限
-  # share_plus: ^7.0.2 #分享
 
 dev_dependencies:
   flutter_test: