部分修改
This commit is contained in:
@@ -4,7 +4,7 @@ class ZContainer extends StatelessWidget {
|
|||||||
const ZContainer({super.key});
|
const ZContainer({super.key});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context){
|
Widget build(BuildContext context) {
|
||||||
return Row(
|
return Row(
|
||||||
mainAxisAlignment: .spaceBetween,
|
mainAxisAlignment: .spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
@@ -12,21 +12,12 @@ class ZContainer extends StatelessWidget {
|
|||||||
width: 200,
|
width: 200,
|
||||||
height: .infinity,
|
height: .infinity,
|
||||||
child: DefaultTextStyle(
|
child: DefaultTextStyle(
|
||||||
style: TextStyle(
|
style: TextStyle(color: Colors.white),
|
||||||
color: Colors.white
|
child: Column(children: [Text("导入数据"), Text("查询数据")]),
|
||||||
),
|
|
||||||
child: Column(
|
|
||||||
children: [
|
|
||||||
Text("导入数据"),
|
|
||||||
Text("查询数据")
|
|
||||||
],
|
|
||||||
)
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Expanded(child: Container(
|
Expanded(child: Container(color: Colors.blue)),
|
||||||
color: Colors.blue,
|
],
|
||||||
))
|
|
||||||
]
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter_carbon/flutter_carbon.dart';
|
||||||
|
|
||||||
import 'container.dart';
|
import 'container.dart';
|
||||||
|
|
||||||
@@ -14,25 +15,15 @@ class MyApp extends StatelessWidget {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return MaterialApp(
|
return MaterialApp(
|
||||||
title: 'Flutter Demo',
|
title: 'Flutter Demo',
|
||||||
theme: ThemeData(
|
theme: ThemeData(extensions: [WhiteTheme.theme]),
|
||||||
// This is the theme of your application.
|
home: CarbonUIShell(
|
||||||
//
|
appName: "报表管理",
|
||||||
// TRY THIS: Try running your application with "flutter run". You'll see
|
sideNavItems: [
|
||||||
// the application has a purple toolbar. Then, without quitting the app,
|
CarbonNavItem(label: "数据导入",),
|
||||||
// try changing the seedColor in the colorScheme below to Colors.green
|
CarbonNavItem(label: "销售明细",),
|
||||||
// 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
|
child: ZContainer()
|
||||||
// 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),
|
|
||||||
),
|
),
|
||||||
home: ZContainer(),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,8 +4,10 @@ import 'package:drift/drift.dart';
|
|||||||
class ImportRecord extends Table {
|
class ImportRecord extends Table {
|
||||||
/// 导入记录 ID
|
/// 导入记录 ID
|
||||||
IntColumn get id => integer().autoIncrement()();
|
IntColumn get id => integer().autoIncrement()();
|
||||||
|
|
||||||
/// 导入时间
|
/// 导入时间
|
||||||
DateTimeColumn get createTime => dateTime()();
|
DateTimeColumn get createTime => dateTime()();
|
||||||
|
|
||||||
/// 导入文件名称
|
/// 导入文件名称
|
||||||
TextColumn get fileName => text()();
|
TextColumn get fileName => text()();
|
||||||
}
|
}
|
||||||
@@ -14,10 +16,13 @@ class ImportRecord extends Table {
|
|||||||
class SaleDetail extends Table {
|
class SaleDetail extends Table {
|
||||||
/// 记录唯一 ID
|
/// 记录唯一 ID
|
||||||
IntColumn get id => integer().autoIncrement()();
|
IntColumn get id => integer().autoIncrement()();
|
||||||
|
|
||||||
/// 进销单据编号
|
/// 进销单据编号
|
||||||
TextColumn get detailNo => text()();
|
TextColumn get detailNo => text()();
|
||||||
|
|
||||||
/// 交易对象名称
|
/// 交易对象名称
|
||||||
TextColumn get objName => text()();
|
TextColumn get objName => text()();
|
||||||
/// 进销单据性质
|
|
||||||
/// 关联导入记录 ID
|
/// 进销单据性质
|
||||||
|
/// 关联导入记录 ID
|
||||||
}
|
}
|
||||||
26
pubspec.lock
26
pubspec.lock
@@ -238,6 +238,14 @@ packages:
|
|||||||
description: flutter
|
description: flutter
|
||||||
source: sdk
|
source: sdk
|
||||||
version: "0.0.0"
|
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:
|
flutter_lints:
|
||||||
dependency: "direct dev"
|
dependency: "direct dev"
|
||||||
description:
|
description:
|
||||||
@@ -367,10 +375,10 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: matcher
|
name: matcher
|
||||||
sha256: "31bd099b47c10cd1aeb55146a2d46ce0277630ecef3f7dae54ad7873f36696cd"
|
sha256: dc0b7dc7651697ea4ff3e69ef44b0407ea32c487a39fff6a4004fa585e901861
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.12.20"
|
version: "0.12.19"
|
||||||
material_color_utilities:
|
material_color_utilities:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@@ -383,10 +391,10 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: meta
|
name: meta
|
||||||
sha256: df0c643f44ad098eb37988027a8e2b2b5a031fd3977f06bbfd3a76637e8df739
|
sha256: "1741988757a65eb6b36abe716829688cf01910bbf91c34354ff7ec1c3de2b349"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.18.2"
|
version: "1.18.0"
|
||||||
mime:
|
mime:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@@ -644,10 +652,10 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: test_api
|
name: test_api
|
||||||
sha256: "2a122cbe059f8b610d3a5415f42e255b6c17b1f21eee1d960f31080237fb4f11"
|
sha256: "949a932224383300f01be9221c39180316445ecb8e7547f70a41a35bf421fb9e"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.7.12"
|
version: "0.7.11"
|
||||||
typed_data:
|
typed_data:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@@ -660,10 +668,10 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: vector_math
|
name: vector_math
|
||||||
sha256: "47a1b32ee755c3fcffa33db52a7258c137f97bdb2209a1075be847809fac4ccf"
|
sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.3.0"
|
version: "2.2.0"
|
||||||
vm_service:
|
vm_service:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@@ -721,5 +729,5 @@ packages:
|
|||||||
source: hosted
|
source: hosted
|
||||||
version: "3.1.3"
|
version: "3.1.3"
|
||||||
sdks:
|
sdks:
|
||||||
dart: ">=3.13.0-104.0.dev <4.0.0"
|
dart: ">=3.10.3 <4.0.0"
|
||||||
flutter: ">=3.38.4"
|
flutter: ">=3.38.4"
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
|||||||
version: 1.0.0+1
|
version: 1.0.0+1
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.13.0-104.0.dev
|
sdk: ^3.10.0
|
||||||
|
|
||||||
# Dependencies specify other packages that your package needs in order to work.
|
# Dependencies specify other packages that your package needs in order to work.
|
||||||
# To automatically upgrade your package dependencies to the latest versions
|
# To automatically upgrade your package dependencies to the latest versions
|
||||||
@@ -37,6 +37,7 @@ dependencies:
|
|||||||
drift: ^2.33.0
|
drift: ^2.33.0
|
||||||
drift_flutter: ^0.3.0
|
drift_flutter: ^0.3.0
|
||||||
path_provider: ^2.1.5
|
path_provider: ^2.1.5
|
||||||
|
flutter_carbon: ^1.2.0
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
|
|||||||
Reference in New Issue
Block a user