update image,audio,video type

master
小赖 4 years ago
parent f83acd0016
commit 948a511afd

@ -44,6 +44,13 @@ class _MyHomePageState extends State<MyHomePage> {
.catchError((e) {
LoggerData.addData(e);
});
Dio()
.get(
"https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png")
.then((e) {
LoggerData.addData(e);
});
Future.delayed(
Duration(milliseconds: 300),
() => PowerLogger.init(context),

@ -1,4 +1,6 @@
import 'dart:convert';
import 'dart:io';
import 'dart:typed_data';
import 'package:dio/dio.dart';
import 'package:flutter/material.dart';
@ -105,6 +107,12 @@ class _DioResponseViewState extends State<DioResponseView> {
),
);
break;
case ContentType.IMAGE:
return Text("IMAGE");
case ContentType.AUDIO:
return Text("AUDIO");
case ContentType.VIDEO:
return Text("VIDEO");
default:
break;
}

Loading…
Cancel
Save