提交 4a654ff1 编写于 作者: zhuxueliang's avatar zhuxueliang

fix

上级 6dc3621c
......@@ -5,10 +5,10 @@
"version": "0.2.0",
"configurations": [
{
"name": "my_app2",
"name": "magic_box",
"request": "launch",
"type": "dart",
"deviceId": "00008030-000C18503A90802E"
"deviceId": "6608FC90-B63B-4EE5-AF16-A5483082AA0F"
},
{
"name": "iOS模拟器",
......@@ -23,13 +23,13 @@
"deviceId": "B7195A0C-A207-403A-AEF5-ACD3D72C22B6"
},
{
"name": "my_app2 (profile mode)",
"name": "magic_box (profile mode)",
"request": "launch",
"type": "dart",
"flutterMode": "profile"
},
{
"name": "my_app2 (release mode)",
"name": "magic_box (release mode)",
"request": "launch",
"type": "dart",
"flutterMode": "release",
......
# my_app2
# magic_box
A new Flutter project.
......
......@@ -44,7 +44,7 @@ android {
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.my_app2"
applicationId "com.example.magic_box"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdkVersion flutter.minSdkVersion
......
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.my_app2">
package="com.example.magic_box">
<!-- The INTERNET permission is required for development. Specifically,
the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
......
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.my_app2">
package="com.example.magic_box">
<application
android:label="my_app2"
android:label="magic_box"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
<activity
......
package com.example.my_app2
package com.example.magic_box
import io.flutter.embedding.android.FlutterActivity
......
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.my_app2">
package="com.example.magic_box">
<!-- The INTERNET permission is required for development. Specifically,
the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
......
......@@ -13,7 +13,7 @@
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>my_app2</string>
<string>magic_box</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
......
......@@ -4,10 +4,10 @@ import 'package:easy_refresh/easy_refresh.dart';
import 'package:flutter/material.dart';
import 'package:flutter_spinkit/flutter_spinkit.dart';
import 'package:go_router/go_router.dart';
import 'package:my_app2/Assets/AssetImages.dart';
import 'package:my_app2/Config/Routes.dart';
import 'package:my_app2/Customization/ViewModel/ProductListViewModel.dart';
import 'package:my_app2/Models/ProductModel.dart';
import 'package:magic_box/Assets/AssetImages.dart';
import 'package:magic_box/Config/Routes.dart';
import 'package:magic_box/Customization/ViewModel/ProductListViewModel.dart';
import 'package:magic_box/Models/ProductModel.dart';
import 'package:provider/provider.dart';
class CustomizationScreen extends StatelessWidget {
......
import 'package:easy_refresh/easy_refresh.dart';
import 'package:flutter/material.dart';
import 'package:my_app2/Models/ProductModel.dart';
import 'package:my_app2/Network/api/product_api.dart';
import 'package:my_app2/Network/http/BaseApi.dart';
import 'package:magic_box/Models/ProductModel.dart';
import 'package:magic_box/Network/api/product_api.dart';
import 'package:magic_box/Network/http/BaseApi.dart';
class ProductListViewModel extends ChangeNotifier {
final EasyRefreshController refreshController = EasyRefreshController(
......
......@@ -2,8 +2,8 @@ import 'dart:math';
import 'package:flutter/material.dart';
import 'package:flutter_swiper_view/flutter_swiper_view.dart';
import 'package:my_app2/MockDatas/MockData.dart';
import 'package:my_app2/Models/BuyerShowModel.dart';
import 'package:magic_box/MockDatas/MockData.dart';
import 'package:magic_box/Models/BuyerShowModel.dart';
import 'package:waterfall_flow/waterfall_flow.dart';
// ignore: must_be_immutable
......
import 'package:flutter/material.dart';
import 'package:my_app2/MockDatas/MockData.dart';
import 'package:my_app2/Models/BuyerShowModel.dart';
import 'package:magic_box/MockDatas/MockData.dart';
import 'package:magic_box/Models/BuyerShowModel.dart';
import 'package:flutter_swiper_view/flutter_swiper_view.dart';
import 'package:waterfall_flow/waterfall_flow.dart';
......@@ -183,11 +183,11 @@ class _HomeScreenState extends State<HomeScreen> {
double bannerH = 500.0 / 375.0 * screenW + 49;
return Scaffold(
appBar: AppBar(
title: const Text(''),
backgroundColor: Colors.transparent,
elevation: 0.0,
),
// appBar: AppBar(
// title: const Text(''),
// backgroundColor: Colors.transparent,
// elevation: 0.0,
// ),
backgroundColor: const Color(0xFFF7F7F7),
extendBodyBehindAppBar: true,
body: CustomScrollView(
......
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';
import 'package:my_app2/Login/ViewModel/UserViewModel.dart';
import 'package:magic_box/Login/ViewModel/UserViewModel.dart';
import 'package:provider/provider.dart';
import 'package:my_app2/Assets/AssetImages.dart';
import 'package:magic_box/Assets/AssetImages.dart';
class LoginScreen extends StatelessWidget {
const LoginScreen({super.key});
......
......@@ -7,7 +7,7 @@ class MineScreen extends StatelessWidget {
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('我的')),
body: const Center(child: Text('我的')),
body: const Center(child: Text('我的2')),
);
}
}
import 'dart:convert';
import 'package:flutter/services.dart' show rootBundle;
import 'package:my_app2/Models/BuyerShowModel.dart';
import 'package:magic_box/Models/BuyerShowModel.dart';
class BuyerShowResult {
BuyerShowResult(this.total, this.page, this.pageSize, this.dataList);
......
import 'package:my_app2/Models/ProductModel.dart';
import 'package:my_app2/Network/http/BaseApi.dart';
import 'package:my_app2/Network/service/XmhService.dart';
import 'package:magic_box/Models/ProductModel.dart';
import 'package:magic_box/Network/http/BaseApi.dart';
import 'package:magic_box/Network/service/XmhService.dart';
class ProductListApi extends BaseApi<List<ProductModel>> {
ProductListApi({required this.page, required this.pageSize});
......
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:go_router/go_router.dart';
import 'package:my_app2/Config/Routes.dart';
import 'package:my_app2/Customization/CustomizationScreen.dart';
import 'package:my_app2/Customization/ProductDetailScreen.dart';
import 'package:my_app2/Home/HomeScreen.dart';
import 'package:my_app2/Login/LoginScreen.dart';
import 'package:my_app2/Login/ViewModel/UserViewModel.dart';
import 'package:my_app2/Mine/MineScreen.dart';
import 'package:my_app2/Network/http/ServiceManager.dart';
import 'package:my_app2/Network/service/XmhService.dart';
import 'package:my_app2/TabPageContainer.dart';
import 'package:magic_box/Config/Routes.dart';
import 'package:magic_box/Customization/CustomizationScreen.dart';
import 'package:magic_box/Customization/ProductDetailScreen.dart';
import 'package:magic_box/Home/home_screen.dart';
import 'package:magic_box/Login/LoginScreen.dart';
import 'package:magic_box/Login/ViewModel/UserViewModel.dart';
import 'package:magic_box/Mine/mine_screen.dart';
import 'package:magic_box/Network/http/ServiceManager.dart';
import 'package:magic_box/Network/service/XmhService.dart';
import 'package:magic_box/TabPageContainer.dart';
import 'package:provider/provider.dart';
void main() {
......
......@@ -4,10 +4,10 @@ project(runner LANGUAGES CXX)
# The name of the executable created for the application. Change this to change
# the on-disk name of your application.
set(BINARY_NAME "my_app2")
set(BINARY_NAME "magic_box")
# The unique GTK application identifier for this application. See:
# https://wiki.gnome.org/HowDoI/ChooseApplicationID
set(APPLICATION_ID "com.example.my_app2")
set(APPLICATION_ID "com.example.magic_box")
# Explicitly opt in to modern CMake behaviors to avoid warnings with recent
# versions of CMake.
......
......@@ -40,11 +40,11 @@ static void my_application_activate(GApplication* application) {
if (use_header_bar) {
GtkHeaderBar* header_bar = GTK_HEADER_BAR(gtk_header_bar_new());
gtk_widget_show(GTK_WIDGET(header_bar));
gtk_header_bar_set_title(header_bar, "my_app2");
gtk_header_bar_set_title(header_bar, "magic_box");
gtk_header_bar_set_show_close_button(header_bar, TRUE);
gtk_window_set_titlebar(window, GTK_WIDGET(header_bar));
} else {
gtk_window_set_title(window, "my_app2");
gtk_window_set_title(window, "magic_box");
}
gtk_window_set_default_size(window, 1280, 720);
......
......@@ -54,7 +54,7 @@
/* Begin PBXFileReference section */
333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = "<group>"; };
335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = "<group>"; };
33CC10ED2044A3C60003C045 /* my_app2.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "my_app2.app"; sourceTree = BUILT_PRODUCTS_DIR; };
33CC10ED2044A3C60003C045 /* magic_box.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "magic_box.app"; sourceTree = BUILT_PRODUCTS_DIR; };
33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = "<group>"; };
33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = "<group>"; };
......@@ -105,7 +105,7 @@
33CC10EE2044A3C60003C045 /* Products */ = {
isa = PBXGroup;
children = (
33CC10ED2044A3C60003C045 /* my_app2.app */,
33CC10ED2044A3C60003C045 /* magic_box.app */,
);
name = Products;
sourceTree = "<group>";
......@@ -172,7 +172,7 @@
);
name = Runner;
productName = Runner;
productReference = 33CC10ED2044A3C60003C045 /* my_app2.app */;
productReference = 33CC10ED2044A3C60003C045 /* magic_box.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
......
......@@ -15,7 +15,7 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "33CC10EC2044A3C60003C045"
BuildableName = "my_app2.app"
BuildableName = "magic_box.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
......@@ -31,7 +31,7 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "33CC10EC2044A3C60003C045"
BuildableName = "my_app2.app"
BuildableName = "magic_box.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
......@@ -54,7 +54,7 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "33CC10EC2044A3C60003C045"
BuildableName = "my_app2.app"
BuildableName = "magic_box.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
......@@ -71,7 +71,7 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "33CC10EC2044A3C60003C045"
BuildableName = "my_app2.app"
BuildableName = "magic_box.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
......
......@@ -5,7 +5,7 @@
// 'flutter create' template.
// The application's name. By default this is also the title of the Flutter window.
PRODUCT_NAME = my_app2
PRODUCT_NAME = magic_box
// The application's bundle identifier
PRODUCT_BUNDLE_IDENTIFIER = com.example.myApp2
......
name: my_app2
name: magic_box
description: A new Flutter project.
# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages.
......
......@@ -8,7 +8,7 @@
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:my_app2/main.dart';
import 'package:magic_box/main.dart';
void main() {
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
......
......@@ -23,13 +23,13 @@
<!-- iOS meta tags & icons -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="my_app2">
<meta name="apple-mobile-web-app-title" content="magic_box">
<link rel="apple-touch-icon" href="icons/Icon-192.png">
<!-- Favicon -->
<link rel="icon" type="image/png" href="favicon.png"/>
<title>my_app2</title>
<title>magic_box</title>
<link rel="manifest" href="manifest.json">
<script>
......
{
"name": "my_app2",
"short_name": "my_app2",
"name": "magic_box",
"short_name": "magic_box",
"start_url": ".",
"display": "standalone",
"background_color": "#0175C2",
......
# Project-level configuration.
cmake_minimum_required(VERSION 3.14)
project(my_app2 LANGUAGES CXX)
project(magic_box LANGUAGES CXX)
# The name of the executable created for the application. Change this to change
# the on-disk name of your application.
set(BINARY_NAME "my_app2")
set(BINARY_NAME "magic_box")
# Explicitly opt in to modern CMake behaviors to avoid warnings with recent
# versions of CMake.
......
......@@ -90,12 +90,12 @@ BEGIN
BLOCK "040904e4"
BEGIN
VALUE "CompanyName", "com.example" "\0"
VALUE "FileDescription", "my_app2" "\0"
VALUE "FileDescription", "magic_box" "\0"
VALUE "FileVersion", VERSION_AS_STRING "\0"
VALUE "InternalName", "my_app2" "\0"
VALUE "InternalName", "magic_box" "\0"
VALUE "LegalCopyright", "Copyright (C) 2023 com.example. All rights reserved." "\0"
VALUE "OriginalFilename", "my_app2.exe" "\0"
VALUE "ProductName", "my_app2" "\0"
VALUE "OriginalFilename", "magic_box.exe" "\0"
VALUE "ProductName", "magic_box" "\0"
VALUE "ProductVersion", VERSION_AS_STRING "\0"
END
END
......
......@@ -27,7 +27,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
FlutterWindow window(project);
Win32Window::Point origin(10, 10);
Win32Window::Size size(1280, 720);
if (!window.Create(L"my_app2", origin, size)) {
if (!window.Create(L"magic_box", origin, size)) {
return EXIT_FAILURE;
}
window.SetQuitOnClose(true);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册