Skip to content

Commit 387e8dd

Browse files
authored
Fix text field (#98)
* Fix text field * Format files * Bump version * Format scaffold
1 parent 21f0be2 commit 387e8dd

File tree

6 files changed

+15
-20
lines changed

6 files changed

+15
-20
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## [0.1.3]
2+
* Fix `TextField` on Flutter v2.2.0
3+
14
## [0.1.2]
25
* Updated the theme api
36
* Properties in `MacosThemeData` and in `Typography` can't be null

example/pubspec.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ packages:
77
name: async
88
url: "https://pub.dartlang.org"
99
source: hosted
10-
version: "2.5.0"
10+
version: "2.6.1"
1111
boolean_selector:
1212
dependency: transitive
1313
description:
@@ -73,7 +73,7 @@ packages:
7373
path: ".."
7474
relative: true
7575
source: path
76-
version: "0.1.2"
76+
version: "0.1.3"
7777
matcher:
7878
dependency: transitive
7979
description:
@@ -120,7 +120,7 @@ packages:
120120
name: source_span
121121
url: "https://pub.dartlang.org"
122122
source: hosted
123-
version: "1.8.0"
123+
version: "1.8.1"
124124
stack_trace:
125125
dependency: transitive
126126
description:
@@ -155,7 +155,7 @@ packages:
155155
name: test_api
156156
url: "https://pub.dartlang.org"
157157
source: hosted
158-
version: "0.2.19"
158+
version: "0.3.0"
159159
typed_data:
160160
dependency: transitive
161161
description:

lib/src/fields/text_field.dart

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import 'dart:ui' as ui show BoxHeightStyle, BoxWidthStyle;
22

3-
import 'package:flutter/foundation.dart' show defaultTargetPlatform, kIsWeb;
3+
import 'package:flutter/foundation.dart' show defaultTargetPlatform;
44
import 'package:flutter/gestures.dart';
55
import 'package:flutter/rendering.dart';
66
import 'package:flutter/services.dart';
@@ -96,7 +96,7 @@ class _TextFieldSelectionGestureDetectorBuilder
9696
extends TextSelectionGestureDetectorBuilder {
9797
_TextFieldSelectionGestureDetectorBuilder({
9898
required _TextFieldState state,
99-
}) : _state = state,
99+
}) : _state = state,
100100
super(delegate: state);
101101

102102
final _TextFieldState _state;
@@ -1389,17 +1389,9 @@ class _TextFieldState extends State<TextField>
13891389
),
13901390
);
13911391

1392-
child = MouseRegion(
1392+
return MouseRegion(
13931393
cursor: SystemMouseCursors.text,
13941394
child: child,
13951395
);
1396-
1397-
if (kIsWeb) {
1398-
return Shortcuts(
1399-
shortcuts: scrollShortcutOverrides,
1400-
child: child,
1401-
);
1402-
}
1403-
return child;
14041396
}
14051397
}

lib/src/layout/scaffold.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ class ScaffoldScope extends InheritedWidget {
317317
required Widget child,
318318
required this.valueNotifier,
319319
required _ScaffoldState scaffoldState,
320-
}) : _scaffoldState = scaffoldState,
320+
}) : _scaffoldState = scaffoldState,
321321
super(key: key, child: child);
322322

323323
/// Provides the constraints from the [Scaffold] to its descendants.

pubspec.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ packages:
4242
name: async
4343
url: "https://pub.dartlang.org"
4444
source: hosted
45-
version: "2.5.0"
45+
version: "2.6.1"
4646
boolean_selector:
4747
dependency: transitive
4848
description:
@@ -218,7 +218,7 @@ packages:
218218
name: source_span
219219
url: "https://pub.dartlang.org"
220220
source: hosted
221-
version: "1.8.0"
221+
version: "1.8.1"
222222
stack_trace:
223223
dependency: transitive
224224
description:
@@ -253,7 +253,7 @@ packages:
253253
name: test_api
254254
url: "https://pub.dartlang.org"
255255
source: hosted
256-
version: "0.2.19"
256+
version: "0.3.0"
257257
typed_data:
258258
dependency: transitive
259259
description:

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: macos_ui
22
description: Flutter widgets and themes implementing the current macOS design language.
3-
version: 0.1.2
3+
version: 0.1.3
44
homepage: 'https://github.com/GroovinChip/macos_ui'
55

66
environment:

0 commit comments

Comments
 (0)