Coder Social home page Coder Social logo

qgqceo / greentravel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sky24n/greentravel

1.0 1.0 0.0 651 KB

Flutter 仿滴滴出行~ 仿滴滴主界面,地图中心请求动效果,服务tabs展开效果,地址检索界面,城市列表界面。

License: BSD 2-Clause "Simplified" License

Java 0.39% Ruby 2.34% Objective-C 0.80% Dart 96.47%

greentravel's Introduction

绿色出行

Flutter 仿滴滴出行App
地图:采用高德地图,仅简单完成了部分功能,基础地图,地址检索,逆地理编码。
界面:仿滴滴主界面,地图中心请求动效果,服务tabs展开效果,地址检索界面,城市列表界面。
项目结构:详见作者另外一个完整项目flutter_wanandroid
目前本项目仅部分开源~
已开源内容:
1、Dart汉字转拼音库 lpinyin
2、城市列表,索引&悬停效果 AzListView
3、也许是目前最好用的Sp工具类 SpUtil
4、也许是目前最好用的屏幕工具类 ScreenUtil
5、闪屏页 SplashPage
6、国际化 flustars
7、Dart常用工具类库 common_utils

SpUtil

// 异步等待Sp初始化完成
await SpUtil.getInstance();
// 同步获取数据
SpUtil.putString('key', value);
SpUtil.getString('key', defValue: '');
SpUtil.getInt('key', defValue: 0);

ScreenUtil

// 如果设计稿尺寸默认配置一致,无需该设置。 配置设计稿尺寸 默认 360.0 / 640.0 / 3.0
setDesignWHD(_designW,_designH,_designD);

// 不依赖context
// 屏幕宽
double screenWidth = ScreenUtil.getInstance().screenWidth;
// 根据屏幕宽适配后尺寸
double adapterW100 = ScreenUtil.getInstance().getWidth(100);

// 依赖context
// 屏幕宽
double screenWidth = ScreenUtil.getScreenW(context);
// 根据屏幕宽适配后尺寸
double adapterW100 = ScreenUtil.getScaleW(context, 100);

Screenshot

引导页

启动页

主界面

首页地图

地址检索

城市列表

关于作者

GitHub : Sky24n
简书     : Sky24n
掘金     : Sky24n
Pub      : Sky24n
Email   : [email protected]

关于App

GitHub : GreenTravel
仅支持安卓Apk下载,通道一速度较快,但有次数限制!若通道一无法下载请通过通道二下载。
通道一点击下载:绿色出行v0.0.1
通道一扫码下载:
通道一

通道二点击下载:绿色出行v0.0.1
通道二扫码下载:
通道二

greentravel's People

Contributors

sky24n avatar

Stargazers

Qiu GuoQian avatar

Watchers

Qiu GuoQian 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.