pull/1/head
戴余标 3 years ago
commit a5ccb0d4cc

@ -1,4 +1,4 @@
{ {
"flutterSdkVersion": "2.10.2", "flutterSdkVersion": "3.0.0",
"flavors": {} "flavors": {}
} }

@ -4,6 +4,7 @@
// ignore_for_file: directives_ordering // ignore_for_file: directives_ordering
// ignore_for_file: lines_longer_than_80_chars // ignore_for_file: lines_longer_than_80_chars
// ignore_for_file: depend_on_referenced_packages
import 'package:audio_session/audio_session_web.dart'; import 'package:audio_session/audio_session_web.dart';
import 'package:device_info_plus_web/device_info_plus_web.dart'; import 'package:device_info_plus_web/device_info_plus_web.dart';

@ -52,7 +52,7 @@ class _MyAppState extends State<MyApp> {
} }
}, },
child: MediaQuery( child: MediaQuery(
data: MediaQueryData.fromWindow(WidgetsBinding.instance!.window), data: MediaQueryData.fromWindow(WidgetsBinding.instance.window),
child: ScreenUtilInit( child: ScreenUtilInit(
designSize: Size(750, 1334), designSize: Size(750, 1334),
// minTextAdapt: true, // minTextAdapt: true,

@ -106,7 +106,7 @@ class _LineCardState extends State<LineCard> {
@override @override
void didChangeDependencies() { void didChangeDependencies() {
WidgetsBinding.instance?.addPostFrameCallback((timeStamp) { WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
_height = context.size?.height ?? 0; _height = context.size?.height ?? 0;
print(context.size?.height); print(context.size?.height);
setState(() {}); setState(() {});

@ -67,7 +67,7 @@ class CollectionListCard extends StatelessWidget {
), ),
), ),
5.hb, 5.hb,
_getIcon(2), // _getIcon(2),
//_getIcon(model.kind??0), //_getIcon(model.kind??0),
Spacer(), Spacer(),
20.hb, 20.hb,

@ -83,15 +83,15 @@ class MarketHomeGoodsCard extends StatelessWidget {
style: TextStyle(fontSize: 28.sp, color: ktextPrimary), style: TextStyle(fontSize: 28.sp, color: ktextPrimary),
), ),
), ),
Padding( // Padding(
padding: EdgeInsets.only( // padding: EdgeInsets.only(
left: 16.w, // left: 16.w,
right: 16.w, // right: 16.w,
top: 10.w, // top: 10.w,
), // ),
child: Container( // child: Container(
child: _getIcon(1), // child: _getIcon(1),
)), // )),
10.hb, 10.hb,
Padding( Padding(
padding: EdgeInsets.symmetric( padding: EdgeInsets.symmetric(

@ -327,7 +327,7 @@ class _MarketPageState extends State<MarketPage>
172 * 2.w, 172 * 2.w,
flexibleSpace: _flexibleSpaceBar(context), flexibleSpace: _flexibleSpaceBar(context),
bottom: PreferredSize( bottom: PreferredSize(
preferredSize: Size.fromHeight(tabBarHeight+50.h), preferredSize: Size.fromHeight(tabBarHeight),
child: _goodsTitle( child: _goodsTitle(
normalTypeButton, normalTypeButton,
salesTypeButton, salesTypeButton,
@ -600,9 +600,9 @@ class _MarketPageState extends State<MarketPage>
geSearch() { geSearch() {
return Column( return Column(
children: [ children: [
16.hb, // 16.hb,
'本商城所有商品来源于京东'.text.color(Color(0xFFACACAC)).normal.size(30.sp).make(), // // '本商城所有商品来源于京东'.text.color(Color(0xFFACACAC)).normal.size(30.sp).make(),
16.hb, // 16.hb,
Row( Row(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [

@ -527,9 +527,9 @@ class _OrderCardState extends State<OrderCard> {
Widget _goodCard(MyOrderListVoList model) { Widget _goodCard(MyOrderListVoList model) {
var top = RichText( var top = RichText(
text: TextSpan(children: [ text: TextSpan(children: [
WidgetSpan( // WidgetSpan(
child: _getKindWd(model.kind ?? 0), // child: _getKindWd(model.kind ?? 0),
), // ),
TextSpan( TextSpan(
text: model.skuName, text: model.skuName,
style: TextStyle(fontSize: 28.sp, color: ktextPrimary)), style: TextStyle(fontSize: 28.sp, color: ktextPrimary)),

@ -581,9 +581,9 @@ class _OrderDetailPageState extends State<OrderDetailPage> {
Widget _goodCard(MyOrderListVoList model) { Widget _goodCard(MyOrderListVoList model) {
var top = RichText( var top = RichText(
text: TextSpan(children: [ text: TextSpan(children: [
WidgetSpan( // WidgetSpan(
child: _getKindWd(model.kind ?? 0), // child: _getKindWd(model.kind ?? 0),
), // ),
TextSpan( TextSpan(
text: model.skuName, text: model.skuName,
style: TextStyle(fontSize: 28.sp, color: ktextPrimary)), style: TextStyle(fontSize: 28.sp, color: ktextPrimary)),

@ -283,7 +283,7 @@ class _GoodDetailPageState extends State<GoodDetailPage> {
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
), ),
), ),
_getIcon(_goodDetail!.kind), // _getIcon(_goodDetail!.kind),
24.hb, 24.hb,
Row( Row(
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
@ -348,7 +348,7 @@ class _GoodDetailPageState extends State<GoodDetailPage> {
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
), ),
), ),
_getIcon(_goodDetail!.kind), // _getIcon(_goodDetail!.kind),
Spacer(), Spacer(),
Row( Row(
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,

@ -76,7 +76,7 @@ class GoodsListCardState extends State<GoodsListCard> {
), ),
), ),
5.hb, 5.hb,
_getIcon(2), // _getIcon(2),
//_getIcon(model.kind??0), //_getIcon(model.kind??0),
Spacer(), Spacer(),
20.hb, 20.hb,

@ -455,9 +455,9 @@ class _SubmitOrderNormalPageState extends State<SubmitOrderNormalPage> {
Widget _goodCard(GoodDetailModel model) { Widget _goodCard(GoodDetailModel model) {
var top = RichText( var top = RichText(
text: TextSpan(children: [ text: TextSpan(children: [
WidgetSpan( // WidgetSpan(
child: _getKindWd(model.kind), // child: _getKindWd(model.kind),
), // ),
TextSpan( TextSpan(
text: model.skuName, text: model.skuName,
style: TextStyle(fontSize: 28.sp, color: ktextPrimary)), style: TextStyle(fontSize: 28.sp, color: ktextPrimary)),

@ -91,15 +91,15 @@ class _SearchGoodsCardState extends State<SearchGoodsCard> {
style: TextStyle(fontSize: 28.sp, color: ktextPrimary), style: TextStyle(fontSize: 28.sp, color: ktextPrimary),
), ),
), ),
Padding( // Padding(
padding: EdgeInsets.only( // padding: EdgeInsets.only(
left: 16.w, // left: 16.w,
right: 16.w, // right: 16.w,
top: 10.w, // top: 10.w,
), // ),
child: Container( // child: Container(
child: _getIcon(widget.item.kind ?? 0), // child: _getIcon(widget.item.kind ?? 0),
)), // )),
10.hb, 10.hb,
Padding( Padding(
padding: EdgeInsets.symmetric( padding: EdgeInsets.symmetric(

@ -265,9 +265,9 @@ class _ShopCarPageState extends State<ShopCarPage> {
Widget _goodCard(ShopCarListModel model, int index) { Widget _goodCard(ShopCarListModel model, int index) {
var top = RichText( var top = RichText(
text: TextSpan(children: [ text: TextSpan(children: [
WidgetSpan( // WidgetSpan(
child: _getKindWd(model.kind ?? 0), // child: _getKindWd(model.kind ?? 0),
), // ),
TextSpan( TextSpan(
text: model.skuName, text: model.skuName,
style: TextStyle(fontSize: 28.sp, color: ktextPrimary)), style: TextStyle(fontSize: 28.sp, color: ktextPrimary)),

@ -245,7 +245,7 @@ packages:
name: collection name: collection
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.15.0" version: "1.16.0"
color: color:
dependency: transitive dependency: transitive
description: description:
@ -408,7 +408,7 @@ packages:
name: fake_async name: fake_async
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.2.0" version: "1.3.0"
ffi: ffi:
dependency: transitive dependency: transitive
description: description:
@ -717,7 +717,7 @@ packages:
name: js name: js
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.6.3" version: "0.6.4"
json_annotation: json_annotation:
dependency: "direct main" dependency: "direct main"
description: description:
@ -787,7 +787,7 @@ packages:
name: material_color_utilities name: material_color_utilities
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.1.3" version: "0.1.4"
meta: meta:
dependency: transitive dependency: transitive
description: description:
@ -892,7 +892,7 @@ packages:
name: path name: path
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.8.0" version: "1.8.1"
path_drawing: path_drawing:
dependency: transitive dependency: transitive
description: description:
@ -1172,7 +1172,7 @@ packages:
name: source_span name: source_span
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.8.1" version: "1.8.2"
sqflite: sqflite:
dependency: transitive dependency: transitive
description: description:
@ -1235,7 +1235,7 @@ packages:
name: test_api name: test_api
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.4.8" version: "0.4.9"
time: time:
dependency: transitive dependency: transitive
description: description:
@ -1340,7 +1340,7 @@ packages:
name: vector_math name: vector_math
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.1.1" version: "2.1.2"
velocity_x: velocity_x:
dependency: "direct main" dependency: "direct main"
description: description:
@ -1405,5 +1405,5 @@ packages:
source: hosted source: hosted
version: "3.1.0" version: "3.1.0"
sdks: sdks:
dart: ">=2.15.0 <3.0.0" dart: ">=2.17.0-0 <3.0.0"
flutter: ">=2.8.0" flutter: ">=2.8.0"

Loading…
Cancel
Save