部分修改

This commit is contained in:
2026-05-26 11:31:38 +08:00
parent 97c88862ec
commit 7aed08fcc8
5 changed files with 42 additions and 46 deletions

View File

@@ -4,7 +4,7 @@ class ZContainer extends StatelessWidget {
const ZContainer({super.key});
@override
Widget build(BuildContext context){
Widget build(BuildContext context) {
return Row(
mainAxisAlignment: .spaceBetween,
children: [
@@ -12,21 +12,12 @@ class ZContainer extends StatelessWidget {
width: 200,
height: .infinity,
child: DefaultTextStyle(
style: TextStyle(
color: Colors.white
),
child: Column(
children: [
Text("导入数据"),
Text("查询数据")
],
)
style: TextStyle(color: Colors.white),
child: Column(children: [Text("导入数据"), Text("查询数据")]),
),
),
Expanded(child: Container(
color: Colors.blue,
))
]
Expanded(child: Container(color: Colors.blue)),
],
);
}
}
}

View File

@@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'package:flutter_carbon/flutter_carbon.dart';
import 'container.dart';
@@ -14,25 +15,15 @@ class MyApp extends StatelessWidget {
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
// This is the theme of your application.
//
// TRY THIS: Try running your application with "flutter run". You'll see
// the application has a purple toolbar. Then, without quitting the app,
// try changing the seedColor in the colorScheme below to Colors.green
// and then invoke "hot reload" (save your changes or press the "hot
// reload" button in a Flutter-supported IDE, or press "r" if you used
// the command line to start the app).
//
// Notice that the counter didn't reset back to zero; the application
// state is not lost during the reload. To reset the state, use hot
// restart instead.
//
// This works for code too, not just values: Most code changes can be
// tested with just a hot reload.
colorScheme: .fromSeed(seedColor: Colors.deepPurple),
theme: ThemeData(extensions: [WhiteTheme.theme]),
home: CarbonUIShell(
appName: "报表管理",
sideNavItems: [
CarbonNavItem(label: "数据导入",),
CarbonNavItem(label: "销售明细",),
],
child: ZContainer()
),
home: ZContainer(),
);
}
}

View File

@@ -4,8 +4,10 @@ import 'package:drift/drift.dart';
class ImportRecord extends Table {
/// 导入记录 ID
IntColumn get id => integer().autoIncrement()();
/// 导入时间
DateTimeColumn get createTime => dateTime()();
/// 导入文件名称
TextColumn get fileName => text()();
}
@@ -14,10 +16,13 @@ class ImportRecord extends Table {
class SaleDetail extends Table {
/// 记录唯一 ID
IntColumn get id => integer().autoIncrement()();
/// 进销单据编号
TextColumn get detailNo => text()();
/// 交易对象名称
TextColumn get objName => text()();
/// 进销单据性质
/// 关联导入记录 ID
}
/// 进销单据性质
/// 关联导入记录 ID
}

View File

@@ -238,6 +238,14 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
flutter_carbon:
dependency: "direct main"
description:
name: flutter_carbon
sha256: "6f20cdcc89aa550dc4847e7b8d3f76b35f7f8639b7e199f8a8148a7336778d52"
url: "https://pub.dev"
source: hosted
version: "1.2.0"
flutter_lints:
dependency: "direct dev"
description:
@@ -367,10 +375,10 @@ packages:
dependency: transitive
description:
name: matcher
sha256: "31bd099b47c10cd1aeb55146a2d46ce0277630ecef3f7dae54ad7873f36696cd"
sha256: dc0b7dc7651697ea4ff3e69ef44b0407ea32c487a39fff6a4004fa585e901861
url: "https://pub.dev"
source: hosted
version: "0.12.20"
version: "0.12.19"
material_color_utilities:
dependency: transitive
description:
@@ -383,10 +391,10 @@ packages:
dependency: transitive
description:
name: meta
sha256: df0c643f44ad098eb37988027a8e2b2b5a031fd3977f06bbfd3a76637e8df739
sha256: "1741988757a65eb6b36abe716829688cf01910bbf91c34354ff7ec1c3de2b349"
url: "https://pub.dev"
source: hosted
version: "1.18.2"
version: "1.18.0"
mime:
dependency: transitive
description:
@@ -644,10 +652,10 @@ packages:
dependency: transitive
description:
name: test_api
sha256: "2a122cbe059f8b610d3a5415f42e255b6c17b1f21eee1d960f31080237fb4f11"
sha256: "949a932224383300f01be9221c39180316445ecb8e7547f70a41a35bf421fb9e"
url: "https://pub.dev"
source: hosted
version: "0.7.12"
version: "0.7.11"
typed_data:
dependency: transitive
description:
@@ -660,10 +668,10 @@ packages:
dependency: transitive
description:
name: vector_math
sha256: "47a1b32ee755c3fcffa33db52a7258c137f97bdb2209a1075be847809fac4ccf"
sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b
url: "https://pub.dev"
source: hosted
version: "2.3.0"
version: "2.2.0"
vm_service:
dependency: transitive
description:
@@ -721,5 +729,5 @@ packages:
source: hosted
version: "3.1.3"
sdks:
dart: ">=3.13.0-104.0.dev <4.0.0"
dart: ">=3.10.3 <4.0.0"
flutter: ">=3.38.4"

View File

@@ -19,7 +19,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1
environment:
sdk: ^3.13.0-104.0.dev
sdk: ^3.10.0
# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
@@ -37,6 +37,7 @@ dependencies:
drift: ^2.33.0
drift_flutter: ^0.3.0
path_provider: ^2.1.5
flutter_carbon: ^1.2.0
dev_dependencies:
flutter_test:
sdk: flutter