Flutter開發的微博客戶端,同時支持Android和iOS。與官方微博x9.99%類似度體驗,離線模式,多語言支持,主題隨心換,超乎想象的流暢度,各類驚喜的細節等待你一一發現。git
查看微博動態、正文、評論
查看熱門話題、微博、熱搜
支持話題、@、表情、全文
離線模式
國際化
主題色github
應用於2020.05.06提交至微博開發平臺,目前還在審覈中,暫沒法申請微博受權!
Ps:做者也不清楚是否能經過審覈,什麼時候經過審覈,但你們仍是能夠本地體驗相關功能。
目前運動和消息板塊未開發,運動板塊暫時放的實時疫情,消息板塊展現九宮格示例。json
相似微博動態,微信朋友圈,微信羣組,釘釘羣組,支持單張大圖預覽。瀏覽器
相似微博/微信發佈動態九宮格,支持按壓放大效果,拖拽排序,拖拽到指定位置刪除。微信
大圖功能必備工具。less
Image image = Image(image: CachedNetworkImageProvider("Url"));
Image imageAsset = Image.asset("");
Image imageFile = Image.file(File("path"));
Image imageNetwork = Image.network("url");
Image imageMemory = Image.memory(null);
ImageUtil imageUtil = ImageUtil();
Rect rect = await imageUtil.getImageSize(image: image);
ImageUtil().getImageSize(image: image).then((Rect rect) {
print("rect: " + rect.toString(); }); 複製代碼
異或對稱加解密 + Base64加解密ide
const String key = '11, 22, 33, 44, 55, 66';
String value = 'Sky24n';
String encode = EncryptUtil.xorBase64Encode(value, key); // WH1YHgMs
String decode = EncryptUtil.xorBase64Decode(encode, key); // Sky24n
複製代碼
簡單封裝json字符串轉對象。工具
String objStr = "{\"name\":\"成都市\"}";
City hisCity = JsonUtil.getObj(objStr, (v) => City.fromJson(v));
String listStr = "[{\"name\":\"成都市\"}, {\"name\":\"北京市\"}]";
List<City> cityList = JsonUtil.getObjList(listStr, (v) => City.fromJson(v));
複製代碼
格式化時間戳。url
/// year -> yyyy/yy month -> MM/M day -> dd/d
/// hour -> HH/H minute -> mm/m second -> ss/s
DateUtil.formatDateMs(DateTime.now().millisecondsSinceEpoch, format: DataFormats.full); // 2019-07-09 16:51:14
DateUtil.formatDateStr("2019-07-09 16:51:14", format: "yyyy/M/d HH:mm:ss"); // 2019/7/9 16:51:14
DateUtil.formatDate(DateTime.now(), format: "yyyy/MM/dd HH:mm:ss"); // 2019/07/09 16:51:14
DateUtil.formatDateMs(ms, format: "yyyy年MM月dd日 HH時mm分ss秒"); // 2019年07月09日 16時51分14秒
複製代碼
相似微信朋友圈,微博動態時間線。spa
enum DayFormat {
///(less than 10s->just now)、x minutes、x hours、(Yesterday)、x days.
///(小於10s->剛剛)、x分鐘、x小時、(昨天)、x天.
Simple,
///(less than 10s->just now)、x minutes、x hours、[This year:(Yesterday/a day ago)、(two days age)、MM-dd ]、[past years: yyyy-MM-dd]
///(小於10s->剛剛)、x分鐘、x小時、[今年: (昨天/1天前)、(2天前)、MM-dd],[往年: yyyy-MM-dd].
Common,
///日期 + HH:mm
///(less than 10s->just now)、x minutes、x hours、[This year:(Yesterday HH:mm/a day ago)、(two days age)、MM-dd HH:mm]、[past years: yyyy-MM-dd HH:mm]
///小於10s->剛剛)、x分鐘、x小時、[今年: (昨天 HH:mm/1天前)、(2天前)、MM-dd HH:mm],[往年: yyyy-MM-dd HH:mm].
Full,
}
TimelineUtil.format(timeMillis, locale: Localizations.localeOf(context).languageCode, dayFormat: DayFormat.Common);
複製代碼
首頁 | 探索 | 個人 |
---|---|---|
![]() |
![]() |
![]() |
微博發佈 | 微博正文 | 我的頁面 |
![]() |
![]() |
![]() |
受權 | 設置 | 圖片 |
![]() |
![]() |
![]() |
我的項目,暫未開源!
GitHub : Fitness
Apk :只有(arm64-v8a)
百度雲盤:提取碼 ttbn
其餘方式:v0.0.1
騰訊微雲:點擊下載
請使用微信或QQ瀏覽器掃碼下載!