Skip to content

Commit

Permalink
support dio 5.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tong.zhou committed Jun 5, 2024
1 parent 4971908 commit 994a27d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions example/lib/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import 'package:flutter/material.dart';
import 'http_utils.dart';

class MyHomePage extends StatefulWidget {
MyHomePage({Key key, this.title}) : super(key: key);
MyHomePage({Key? key, this.title}) : super(key: key);

final String title;
final String? title;

@override
_MyHomePageState createState() => _MyHomePageState();
Expand All @@ -33,7 +33,7 @@ class _MyHomePageState extends State<MyHomePage> {
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
title: Text(widget.title??""),
),
body: Center(
child: Column(
Expand Down
4 changes: 2 additions & 2 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ description: example of dio log
version: 1.0.0+1

environment:
sdk: ">=2.1.0 <3.0.0"
sdk: '>=2.18.0-149.0.dev <3.0.0'

dependencies:
flutter:
Expand All @@ -27,7 +27,7 @@ dependencies:
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.1
dio: ^4.0.0
dio: ^5.4.3
# dio_log: 2.0.3
dio_log:
path: ../../dio_log
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ version: 2.0.4
homepage: https://github.com/flutterplugin/dio_log

environment:
sdk: '>=2.12.0 <3.0.0'
sdk: '>=2.18.0-149.0.dev <3.0.0'

dependencies:
flutter:
sdk: flutter
dio: ^4.0.0
dio: ^5.4.3

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit 994a27d

Please sign in to comment.