首次进入应用跳转首页,购物车页面分享按钮功能

hmxc
张萌 4 years ago
parent f72d5c2b9f
commit 32ac21f597

@ -1,6 +1,8 @@
import 'dart:io';
import 'package:akuCommunity/pages/home/home_page.dart';
import 'package:akuCommunity/pages/sign/sign_in_page.dart';
import 'package:akuCommunity/pages/tab_navigator.dart';
import 'package:amap_map_fluttify/amap_map_fluttify.dart';
import 'package:ani_route/ani_route.dart';
import 'package:flutter/material.dart';
@ -62,7 +64,7 @@ class _MyAppState extends State<MyApp> {
visualDensity: VisualDensity.adaptivePlatformDensity,
),
// home: TabNavigator(),
home: SignInPage(),
home: TabNavigator(),
//
localizationsDelegates: [
PickerLocalizationsDelegate.delegate,

@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter_icons/flutter_icons.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:fluwx/fluwx.dart';
class ProductContent extends StatelessWidget {
final String itemprice, itemtitle, itemshorttitle, itemdesc;
@ -102,7 +103,14 @@ class ProductContent extends StatelessWidget {
right: 0,
top: ScreenUtil().setWidth(169),
child: InkWell(
onTap: () {},
onTap: () {
shareToWeChat(WeChatShareWebPageModel(
'https://mobile.baidu.com/item?docid=27505288',
title:itemtitle,
description: '前往小蜜蜂智慧社区查看吧',
));
},
child: Container(
decoration: BoxDecoration(
color: Color(0xfff0f0f0),

@ -3,6 +3,7 @@ import 'dart:convert';
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:pull_to_refresh/pull_to_refresh.dart';
import 'package:akuCommunity/base/assets_image.dart';
import 'package:akuCommunity/utils/screenutil.dart';
@ -76,6 +77,8 @@ class _HomePageState extends State<HomePage>
@override
Widget build(BuildContext context) {
ScreenUtil.init(context,
designSize: Size(750, 1334), allowFontScaling: true);
return Scaffold(
appBar: PreferredSize(
child: HomeAppBar(),

@ -196,10 +196,6 @@ class _SignInPageState extends State<SignInPage> {
@override
Widget build(BuildContext context) {
double _statusHeight = MediaQuery.of(context).padding.top;
ScreenUtil.init(context,
designSize: Size(750, 1334), allowFontScaling: true);
return Scaffold(
backgroundColor: Colors.white,
appBar: _appBar(),

@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.5+6
version: 1.0.6+7
environment:
sdk: ">=2.7.0 <3.0.0"

Loading…
Cancel
Save