mirror of
https://github.com/flutter/flutter
synced 2024-10-13 03:32:55 +00:00
fix indentation issues (#84374)
This commit is contained in:
parent
62633210db
commit
323ffe1233
|
@ -94,7 +94,8 @@ mixin PaintingBinding on BindingBase, ServicesBinding {
|
|||
/// unnecessary memory usage for images. Callers that wish to display an image
|
||||
/// above its native resolution should prefer scaling the canvas the image is
|
||||
/// drawn into.
|
||||
Future<ui.Codec> instantiateImageCodec(Uint8List bytes, {
|
||||
Future<ui.Codec> instantiateImageCodec(
|
||||
Uint8List bytes, {
|
||||
int? cacheWidth,
|
||||
int? cacheHeight,
|
||||
bool allowUpscaling = false,
|
||||
|
|
|
@ -2282,8 +2282,10 @@ class FollowerLayer extends ContainerLayer {
|
|||
/// Returns null if [a] [b] do not share a common ancestor, in which case the
|
||||
/// results in [ancestorsA] and [ancestorsB] are undefined.
|
||||
static Layer? _pathsToCommonAncestor(
|
||||
Layer? a, Layer? b,
|
||||
List<ContainerLayer?> ancestorsA, List<ContainerLayer?> ancestorsB,
|
||||
Layer? a,
|
||||
Layer? b,
|
||||
List<ContainerLayer?> ancestorsA,
|
||||
List<ContainerLayer?> ancestorsB,
|
||||
) {
|
||||
// No common ancestor found.
|
||||
if (a == null || b == null)
|
||||
|
|
|
@ -18,7 +18,8 @@ import 'viewport_offset.dart';
|
|||
|
||||
// Trims the specified edges of the given `Rect` [original], so that they do not
|
||||
// exceed the given values.
|
||||
Rect? _trim(Rect? original, {
|
||||
Rect? _trim(
|
||||
Rect? original, {
|
||||
double top = -double.infinity,
|
||||
double right = double.infinity,
|
||||
double bottom = double.infinity,
|
||||
|
|
|
@ -336,8 +336,8 @@ class LogicalKeySet extends KeySet<LogicalKeyboardKey> with Diagnosticable
|
|||
|
||||
@override
|
||||
String debugDescribeKeys() {
|
||||
final List<LogicalKeyboardKey> sortedKeys = keys.toList()..sort(
|
||||
(LogicalKeyboardKey a, LogicalKeyboardKey b) {
|
||||
final List<LogicalKeyboardKey> sortedKeys = keys.toList()
|
||||
..sort((LogicalKeyboardKey a, LogicalKeyboardKey b) {
|
||||
// Put the modifiers first. If it has a synonym, then it's something
|
||||
// like shiftLeft, altRight, etc.
|
||||
final bool aIsModifier = a.synonyms.isNotEmpty || _modifiers.contains(a);
|
||||
|
@ -348,8 +348,7 @@ class LogicalKeySet extends KeySet<LogicalKeyboardKey> with Diagnosticable
|
|||
return 1;
|
||||
}
|
||||
return a.debugName!.compareTo(b.debugName!);
|
||||
},
|
||||
);
|
||||
});
|
||||
return sortedKeys.map<String>((LogicalKeyboardKey key) => key.debugName.toString()).join(' + ');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue