getx icon indicating copy to clipboard operation
getx copied to clipboard

GetConnect can't use in pure dart project.

Open yang-lile opened this issue 1 year ago • 2 comments

Describe the bug GetConnect should not include any flutter code. it's very confusing.

**Reproduction code I try to solve issue 1694.

  1. create a dart project.
  2. write these code...
  3. throw error

Expected behavior a error.

Screenshots

  Map<SemanticsAction, SemanticsActionHandler> _actions = _kEmptyConfig._actions;
      ^^^^^^^^^^^^^^^
../../local/flutter/packages/flutter/lib/src/semantics/semantics.dart:2153:30: Error: Type 'VoidCallback' not found.
  Map<CustomSemanticsAction, VoidCallback> _customSemanticsActions = _kEmptyConfig._customSemanticsActions;
                             ^^^^^^^^^^^^
../../local/flutter/packages/flutter/lib/src/semantics/semantics.dart:2170:16: Error: Type 'SemanticsFlag' not found.
  bool hasFlag(SemanticsFlag flag) => _flags & flag.index != 0;
               ^^^^^^^^^^^^^
../../local/flutter/packages/flutter/lib/src/semantics/semantics.dart:2343:3: Error: Type 'TextDirection' not found.
  TextDirection? get textDirection => _textDirection;
  ^^^^^^^^^^^^^
../../local/flutter/packages/flutter/lib/src/semantics/semantics.dart:2344:3: Error: Type 'TextDirection' not found.
  TextDirection? _textDirection = _kEmptyConfig.textDirection;
  ^^^^^^^^^^^^^
../../local/flutter/packages/flutter/lib/src/semantics/semantics.dart:2447:26: Error: Type 'SemanticsAction' not found.
  bool _canPerformAction(SemanticsAction action) => _actions.containsKey(action);
                         ^^^^^^^^^^^^^^^
../../local/flutter/packages/flutter/lib/src/semantics/semantics.dart:2671:21: Error: Type 'ui.SemanticsUpdateBuilder' not found.
  void _addToUpdate(ui.SemanticsUpdateBuilder builder, Set<int> customSemanticsActionIdsUpdate) {
                    ^^^^^^^^^^^^^^^^^^^^^^^^^
../../local/flutter/packages/flutter/lib/src/semantics/semantics.dart:2811:30: Error: Type 'SemanticsAction' not found.
  bool _debugIsActionBlocked(SemanticsAction action) {
                             ^^^^^^^^^^^^^^^
../../local/flutter/packages/flutter/lib/src/semantics/semantics.dart:2989:9: Error: Type 'TextDirection' not found.
  final TextDirection textDirection;
        ^^^^^^^^^^^^^
../../local/flutter/packages/flutter/lib/src/semantics/semantics.dart:3126:1: Error: Type 'Offset' not found.
Offset _pointInParentCoordinates(SemanticsNode node, Offset point) {

Flutter Version: 3.13.6

Getx Version: 4.6.6

Describe on which device you found the bug:

Minimal reproduce code

import 'package:get/get_connect/http/src/http.dart';

Future<void> main(List<String> arguments) async {
  final http = GetHttpClient();
final response = await http.get(
    'https://upload.wikimedia.org/wikipedia/commons/9/9a/PNG_transparency_demonstration_2.png');
print(response.statusText); // FormatException: Unexpected extension byte (at offset 0)

}

yang-lile avatar Nov 08 '23 18:11 yang-lile

#1694

yang-lile avatar Nov 08 '23 18:11 yang-lile

have something solutions?

yang-lile avatar Nov 26 '23 08:11 yang-lile