flutter_ume icon indicating copy to clipboard operation
flutter_ume copied to clipboard

dio requests list 无法加载下一页

Open legeneek opened this issue 4 years ago • 1 comments

没有报错,但是只能加载第一页

测试代码

import 'package:flutter/material.dart';
import 'package:flutter_ume/flutter_ume.dart';
import 'package:flutter_ume_kit_console/flutter_ume_kit_console.dart';
import 'package:flutter_ume_kit_dio/flutter_ume_kit_dio.dart';
import 'package:dio/dio.dart';

Dio dio = Dio();

class App extends StatefulWidget {
  _AppState createState() => _AppState();
}

class _AppState extends State<App> {
  int i = 0;

  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'test',
      home: Scaffold(
        appBar: AppBar(title: Text('hello')),
        body: Container(
          child: Row(children: [
            TextButton(onPressed: add, child: Text('$i'))
          ],),
        )
      ),
    );
  }
  add() {
    debugPrint('add $i');
    dio.get('https://www.baidu.com');
    this.setState(() {
      i = i + 1;
    });
  }
}


void main() {
  PluginManager.instance
      ..register(Console())
      ..register(DioInspector(dio: dio));
  runApp(injectUMEWidget(child: App(), enable: true));
}

pubspec

  flutter_ume: 0.2.1
  flutter_ume_kit_console: 0.2.1
  flutter_ume_kit_dio: 0.2.0

flutter doctor

[✓] Flutter (Channel stable, 2.2.3, on macOS 11.5.1 20G80 darwin-x64, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.2)
[✓] VS Code (version 1.59.1)

device: pixel 2

legeneek avatar Aug 26 '21 07:08 legeneek

感谢反馈,近期会抽时间看下问题。

AlexV525 avatar Aug 27 '21 05:08 AlexV525

问题应已解决。

AlexV525 avatar Sep 15 '22 18:09 AlexV525