Giter Club home page Giter Club logo

schoolsecondhandapp-flutter's Introduction

shadow

校园二手交易平台

Getting Started

1.开发平台 Pixel 2

2.开发环境 Android API 30

3.运行命令 flutter run --no-sound-null-safety

服务器设置地址

1.lib/config/http/http_options.dart 2.修改自己的localhost或者云服务器地址

虚拟机的调式上

1、虚拟机访问本地电脑的端口时,不能用127.0.0.1或者localhost 2、应该用为 'http://10.0.2.2:9000' 中的10.0.2.2

service中的login_service

1、params: {"passport": passport, "pwd": ecryptoMd5(password)}); 2、后台数据库密码以后改成Md5格式时,要改回来才能传输正确的密码登录

对于图片有时加载unload assets

1、 如果加载本地的图片,需要注意的是在pubspec.yaml中的asset要写上路径前缀

对于调用传到某一个page的参数

1、在下面的state函数中,只有在init、build等重写@ovveride函数中,才能使用widget.调用参数

list初始化

Short answer: Instead of the pre-null-safety operations

var foo = List(); // Now error var bar = List(n); // Now error var baz = List(0); // Now error use the following:

var foo = []; // Always the recommended way. var bar = List.filled(1, 0); // Not filled with nulls. var baz = List.empty();

打包测试包

在命令行 运行 flutter build apk --no-sound-null-safety

schoolsecondhandapp-flutter's People

Contributors

shadow-xjy avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.