浏览代码

update

/siyaoH-1.17-PlatformMessage
siyao 4 年前
当前提交
63dfb4d3
共有 36 个文件被更改,包括 108 次插入50 次删除
  1. 6
      com.unity.uiwidgets/Runtime/material/app_bar.cs
  2. 1
      com.unity.uiwidgets/Runtime/material/app_bar_theme.cs
  3. 3
      com.unity.uiwidgets/Runtime/material/back_button.cs
  4. 8
      com.unity.uiwidgets/Runtime/material/bottom_navigation_bar.cs
  5. 2
      com.unity.uiwidgets/Runtime/material/bottom_sheet.cs
  6. 2
      com.unity.uiwidgets/Runtime/material/button_theme.cs
  7. 2
      com.unity.uiwidgets/Runtime/material/checkbox.cs
  8. 14
      com.unity.uiwidgets/Runtime/material/chip.cs
  9. 1
      com.unity.uiwidgets/Runtime/material/color_scheme.cs
  10. 5
      com.unity.uiwidgets/Runtime/material/date_picker.cs
  11. 8
      com.unity.uiwidgets/Runtime/material/dialog.cs
  12. 2
      com.unity.uiwidgets/Runtime/material/drawer_header.cs
  13. 6
      com.unity.uiwidgets/Runtime/material/dropdown.cs
  14. 2
      com.unity.uiwidgets/Runtime/material/expand_icon.cs
  15. 3
      com.unity.uiwidgets/Runtime/material/icon_button.cs
  16. 5
      com.unity.uiwidgets/Runtime/material/ink_decoration.cs
  17. 2
      com.unity.uiwidgets/Runtime/material/ink_well.cs
  18. 2
      com.unity.uiwidgets/Runtime/material/list_tile.cs
  19. 1
      com.unity.uiwidgets/Runtime/material/material_button.cs
  20. 4
      com.unity.uiwidgets/Runtime/material/popup_menu.cs
  21. 2
      com.unity.uiwidgets/Runtime/material/radio.cs
  22. 2
      com.unity.uiwidgets/Runtime/material/refresh_indicator.cs
  23. 2
      com.unity.uiwidgets/Runtime/material/reorderable_list.cs
  24. 2
      com.unity.uiwidgets/Runtime/material/search.cs
  25. 2
      com.unity.uiwidgets/Runtime/material/slider.cs
  26. 4
      com.unity.uiwidgets/Runtime/material/stepper.cs
  27. 2
      com.unity.uiwidgets/Runtime/material/switch.cs
  28. 6
      com.unity.uiwidgets/Runtime/material/tabs.cs
  29. 2
      com.unity.uiwidgets/Runtime/material/text_field.cs
  30. 2
      com.unity.uiwidgets/Runtime/material/theme_data.cs
  31. 2
      com.unity.uiwidgets/Runtime/material/timer.cs
  32. 1
      com.unity.uiwidgets/Runtime/material/tooltip.cs
  33. 1
      com.unity.uiwidgets/Runtime/material/typography.cs
  34. 9
      com.unity.uiwidgets/Runtime/material/user_accounts_drawer_header.cs
  35. 29
      com.unity.uiwidgets/Runtime/material/elevation_overlay.cs
  36. 11
      com.unity.uiwidgets/Runtime/material/elevation_overlay.cs.meta

6
com.unity.uiwidgets/Runtime/material/app_bar.cs


using System;
using System.Collections.Generic;
using uiwidgets;
using Unity.UIWidgets.animation;
using Unity.UIWidgets.foundation;
using Unity.UIWidgets.painting;

using Unity.UIWidgets.widgets;
using UnityEngine;
using Brightness = Unity.UIWidgets.service.Brightness;
using Color = Unity.UIWidgets.ui.Color;
using TextStyle = Unity.UIWidgets.painting.TextStyle;

}
public override Widget build(BuildContext context) {
D.assert(MaterialD.debugCheckHasMaterialLocalizations(context));
D.assert(material_.debugCheckHasMaterialLocalizations(context));
ThemeData themeData = Theme.of(context);
AppBarTheme appBarTheme = AppBarTheme.of(context);
ScaffoldState scaffold = Scaffold.of(context, nullOk: true);

public override string ToString() {
return
$"{Diagnostics.describeIdentity(this)}(topPadding: {topPadding?.ToString("F1")}, bottomHeight: {_bottomHeight.ToString("F1")}, ...)";
$"{foundation_.describeIdentity(this)}(topPadding: {topPadding?.ToString("F1")}, bottomHeight: {_bottomHeight.ToString("F1")}, ...)";
}
}

1
com.unity.uiwidgets/Runtime/material/app_bar_theme.cs


using Unity.UIWidgets.service;
using Unity.UIWidgets.ui;
using Unity.UIWidgets.widgets;
using Brightness = Unity.UIWidgets.service.Brightness;
namespace Unity.UIWidgets.material {
public class AppBarTheme : Diagnosticable {

3
com.unity.uiwidgets/Runtime/material/back_button.cs


using uiwidgets;
using Unity.UIWidgets.foundation;
using Unity.UIWidgets.widgets;
using UnityEngine;

}
public override Widget build(BuildContext context) {
D.assert(MaterialD.debugCheckHasMaterialLocalizations(context));
D.assert(material_.debugCheckHasMaterialLocalizations(context));
return new IconButton(
icon: new Icon(Icons.close),
tooltip: MaterialLocalizations.of(context).closeButtonTooltip,

8
com.unity.uiwidgets/Runtime/material/bottom_navigation_bar.cs


using System;
using System.Collections.Generic;
using System.Linq;
using uiwidgets;
using Unity.UIWidgets.scheduler;
using Unity.UIWidgets.scheduler2;
using Brightness = Unity.UIWidgets.service.Brightness;
using Canvas = Unity.UIWidgets.ui.Canvas;
using Color = Unity.UIWidgets.ui.Color;
using Rect = Unity.UIWidgets.ui.Rect;

color: colorTween.evaluate(animation)
),
child: new Transform(
transform: new Matrix4().diagonal3Values(t, t, t),
transform: Matrix4.diagonal3Values(t, t, t),
alignment: Alignment.bottomCenter,
child: item.title
)

public override Widget build(BuildContext context) {
D.assert(WidgetsD.debugCheckHasDirectionality(context));
D.assert(MaterialD.debugCheckHasMaterialLocalizations(context));
D.assert(material_.debugCheckHasMaterialLocalizations(context));
float additionalBottomPadding =
Mathf.Max(MediaQuery.of(context).padding.bottom - widget.selectedFontSize / 2.0f, 0.0f);

2
com.unity.uiwidgets/Runtime/material/bottom_sheet.cs


) {
D.assert(context != null);
D.assert(builder != null);
D.assert(MaterialD.debugCheckHasMaterialLocalizations(context));
D.assert(material_.debugCheckHasMaterialLocalizations(context));
return Navigator.push(context, new _ModalBottomSheetRoute<T>(
builder: builder,
theme: Theme.of(context, shadowThemeOnly: true),

2
com.unity.uiwidgets/Runtime/material/button_theme.cs


using System;
using uiwidgets;
using Unity.UIWidgets.foundation;
using Unity.UIWidgets.painting;
using Unity.UIWidgets.rendering;

using Brightness = Unity.UIWidgets.service.Brightness;
namespace Unity.UIWidgets.material {
public enum ButtonTextTheme {

2
com.unity.uiwidgets/Runtime/material/checkbox.cs


class _CheckboxState : TickerProviderStateMixin<Checkbox> {
public override Widget build(BuildContext context) {
D.assert(MaterialD.debugCheckHasMaterial(context));
D.assert(material_.debugCheckHasMaterial(context));
ThemeData themeData = Theme.of(context);
Size size;
switch (widget.materialTapTargetSize ?? themeData.materialTapTargetSize) {

14
com.unity.uiwidgets/Runtime/material/chip.cs


Color _shadowColor;
public override Widget build(BuildContext context) {
D.assert(MaterialD.debugCheckHasMaterial(context));
D.assert(material_.debugCheckHasMaterial(context));
return new RawChip(
avatar: avatar,
label: label,

ShapeBorder _avatarBorder;
public override Widget build(BuildContext context) {
D.assert(MaterialD.debugCheckHasMaterial(context));
D.assert(material_.debugCheckHasMaterial(context));
return new RawChip(
avatar: avatar,
label: label,

}
public override Widget build(BuildContext context) {
D.assert(MaterialD.debugCheckHasMaterial(context));
D.assert(material_.debugCheckHasMaterial(context));
ChipThemeData chipTheme = ChipTheme.of(context);
return new RawChip(
avatar: avatar,

}
public override Widget build(BuildContext context) {
D.assert(MaterialD.debugCheckHasMaterial(context));
D.assert(material_.debugCheckHasMaterial(context));
return new RawChip(
avatar: avatar,
label: label,

Color _shadowColor;
public override Widget build(BuildContext context) {
D.assert(MaterialD.debugCheckHasMaterial(context));
D.assert(material_.debugCheckHasMaterial(context));
return new RawChip(
avatar: avatar,
label: label,

static readonly Color _defaultShadowColor = Colors.black;
public override Widget build(BuildContext context) {
D.assert(MaterialD.debugCheckHasMaterial(context));
D.assert(material_.debugCheckHasMaterial(context));
D.assert(MaterialD.debugCheckHasMaterialLocalizations(context));
D.assert(material_.debugCheckHasMaterialLocalizations(context));
ThemeData theme = Theme.of(context);
ChipThemeData chipTheme = ChipTheme.of(context);

1
com.unity.uiwidgets/Runtime/material/color_scheme.cs


using Unity.UIWidgets.foundation;
using Unity.UIWidgets.service;
using Unity.UIWidgets.ui;
using Brightness = Unity.UIWidgets.service.Brightness;
namespace Unity.UIWidgets.material {
public class ColorScheme : Diagnosticable, IEquatable<ColorScheme> {

5
com.unity.uiwidgets/Runtime/material/date_picker.cs


using System.Collections.Generic;
using com.unity.uiwidgets.Runtime.rendering;
using RSG;
using uiwidgets;
using Unity.UIWidgets.animation;
using Unity.UIWidgets.async;
using Unity.UIWidgets.foundation;

() => "Provided initialDate must satisfy provided selectableDayPredicate"
);
D.assert(context != null);
D.assert(MaterialD.debugCheckHasMaterialLocalizations(context));
D.assert(material_.debugCheckHasMaterialLocalizations(context));
Widget child = new _DatePickerDialog(
initialDate: initialDate,

}
public override Widget build(BuildContext context) {
D.assert(MaterialD.debugCheckHasMaterial(context));
D.assert(material_.debugCheckHasMaterial(context));
ThemeData themeData = Theme.of(context);
TextStyle style = themeData.textTheme.body1;
return ListView.builder(

8
com.unity.uiwidgets/Runtime/material/dialog.cs


public readonly ShapeBorder shape;
public override Widget build(BuildContext context) {
D.assert(MaterialD.debugCheckHasMaterialLocalizations(context));
D.assert(material_.debugCheckHasMaterialLocalizations(context));
List<Widget> body = new List<Widget>();

}
public static class DialogUtils {
static Widget _buildMaterialDialogTransitions(BuildContext context, Animation<float> animation,
static Widget _buildmaterial_ialogTransitions(BuildContext context, Animation<float> animation,
Animation<float> secondaryAnimation, Widget child) {
return new FadeTransition(
opacity: new CurvedAnimation(

bool barrierDismissible = true,
WidgetBuilder builder = null
) {
D.assert(MaterialD.debugCheckHasMaterialLocalizations(context));
D.assert(material_.debugCheckHasMaterialLocalizations(context));
ThemeData theme = Theme.of(context, shadowThemeOnly: true);
return widgets.DialogUtils.showGeneralDialog(

barrierDismissible: barrierDismissible,
barrierColor: Colors.black54,
transitionDuration: new TimeSpan(0, 0, 0, 0, 150),
transitionBuilder: _buildMaterialDialogTransitions
transitionBuilder: _buildmaterial_ialogTransitions
);
}
}

2
com.unity.uiwidgets/Runtime/material/drawer_header.cs


public override Widget build(BuildContext context) {
D.assert(MaterialD.debugCheckHasMaterial(context));
D.assert(material_.debugCheckHasMaterial(context));
ThemeData theme = Theme.of(context);
float statusBarHeight = MediaQuery.of(context).padding.top;
return new Container(

6
com.unity.uiwidgets/Runtime/material/dropdown.cs


}
public override Widget build(BuildContext context) {
D.assert(MaterialD.debugCheckHasMaterialLocalizations(context));
D.assert(material_.debugCheckHasMaterialLocalizations(context));
MaterialLocalizations localizations = MaterialLocalizations.of(context);
_DropdownRoute<T> route = widget.route;
float unit = 0.5f / (route.items.Count + 1.5f);

}
public override Widget build(BuildContext context) {
D.assert(MaterialD.debugCheckHasMaterial(context));
D.assert(MaterialD.debugCheckHasMaterialLocalizations(context));
D.assert(material_.debugCheckHasMaterial(context));
D.assert(material_.debugCheckHasMaterialLocalizations(context));
List<Widget> items = _enabled ? new List<Widget>(widget.items) : new List<Widget>();
int hintIndex = 0;

2
com.unity.uiwidgets/Runtime/material/expand_icon.cs


public override Widget build(BuildContext context) {
D.assert(MaterialD.debugCheckHasMaterial(context));
D.assert(material_.debugCheckHasMaterial(context));
ThemeData theme = Theme.of(context);
return new IconButton(
padding: widget.padding,

3
com.unity.uiwidgets/Runtime/material/icon_button.cs


using uiwidgets;
using Unity.UIWidgets.foundation;
using Unity.UIWidgets.painting;
using Unity.UIWidgets.rendering;

public readonly string tooltip;
public override Widget build(BuildContext context) {
D.assert(MaterialD.debugCheckHasMaterial(context));
D.assert(material_.debugCheckHasMaterial(context));
Color currentColor;
if (onPressed != null) {
currentColor = color;

5
com.unity.uiwidgets/Runtime/material/ink_decoration.cs


using uiwidgets;
using Unity.UIWidgets.foundation;
using Unity.UIWidgets.painting;
using Unity.UIWidgets.rendering;

return padding;
}
EdgeInsets decorationPadding = decoration.padding;
EdgeInsets decorationPadding = (EdgeInsets) decoration.padding;
if (padding == null) {
return decorationPadding;
}

}
public override Widget build(BuildContext context) {
D.assert(MaterialD.debugCheckHasMaterial(context));
D.assert(material_.debugCheckHasMaterial(context));
Widget result = new LayoutBuilder(
builder: _build
);

2
com.unity.uiwidgets/Runtime/material/ink_well.cs


public virtual bool debugCheckContext(BuildContext context) {
D.assert(MaterialD.debugCheckHasMaterial(context));
D.assert(material_.debugCheckHasMaterial(context));
return true;
}

2
com.unity.uiwidgets/Runtime/material/list_tile.cs


}
public override Widget build(BuildContext context) {
D.assert(MaterialD.debugCheckHasMaterial(context));
D.assert(material_.debugCheckHasMaterial(context));
ThemeData theme = Theme.of(context);
ListTileTheme tileTheme = ListTileTheme.of(context);

1
com.unity.uiwidgets/Runtime/material/material_button.cs


using Unity.UIWidgets.service;
using Unity.UIWidgets.ui;
using Unity.UIWidgets.widgets;
using Brightness = Unity.UIWidgets.service.Brightness;
namespace Unity.UIWidgets.material {
public class MaterialButton : StatelessWidget {

4
com.unity.uiwidgets/Runtime/material/popup_menu.cs


D.assert(context != null);
D.assert(position != null);
D.assert(items != null && items.isNotEmpty());
D.assert(MaterialD.debugCheckHasMaterialLocalizations(context));
D.assert(material_.debugCheckHasMaterialLocalizations(context));
return Navigator.push(context, new _PopupMenuRoute<T>(
position: position,

}
public override Widget build(BuildContext context) {
D.assert(MaterialD.debugCheckHasMaterialLocalizations(context));
D.assert(material_.debugCheckHasMaterialLocalizations(context));
return widget.child != null
? (Widget) new InkWell(
onTap: showButtonMenu,

2
com.unity.uiwidgets/Runtime/material/radio.cs


}
public override Widget build(BuildContext context) {
D.assert(MaterialD.debugCheckHasMaterial(context));
D.assert(material_.debugCheckHasMaterial(context));
ThemeData themeData = Theme.of(context);
Size size;
switch (widget.materialTapTargetSize ?? themeData.materialTapTargetSize) {

2
com.unity.uiwidgets/Runtime/material/refresh_indicator.cs


GlobalKey _key = GlobalKey.key();
public override Widget build(BuildContext context) {
D.assert(MaterialD.debugCheckHasMaterialLocalizations(context));
D.assert(material_.debugCheckHasMaterialLocalizations(context));
Widget child = new NotificationListener<ScrollNotification>(
key: _key,
onNotification: _handleScrollNotification,

2
com.unity.uiwidgets/Runtime/material/reorderable_list.cs


}
public override Widget build(BuildContext context) {
D.assert(MaterialD.debugCheckHasMaterialLocalizations(context));
D.assert(material_.debugCheckHasMaterialLocalizations(context));
return new LayoutBuilder(builder: (BuildContext _, BoxConstraints constraints) => {
List<Widget> wrappedChildren = new List<Widget> { };
if (widget.header != null) {

2
com.unity.uiwidgets/Runtime/material/search.cs


}
public override Widget build(BuildContext context) {
MaterialD.debugCheckHasMaterialLocalizations(context);
material_.debugCheckHasMaterialLocalizations(context);
ThemeData theme = widget.del.appBarTheme(context);
string searchFieldLabel = MaterialLocalizations.of(context).searchFieldLabel;

2
com.unity.uiwidgets/Runtime/material/slider.cs


}
public override Widget build(BuildContext context) {
D.assert(MaterialD.debugCheckHasMaterial(context));
D.assert(material_.debugCheckHasMaterial(context));
D.assert(WidgetsD.debugCheckHasMediaQuery(context));
SliderThemeData sliderTheme = SliderTheme.of(context);

4
com.unity.uiwidgets/Runtime/material/stepper.cs


}
public override Widget build(BuildContext context) {
D.assert(MaterialD.debugCheckHasMaterial(context));
D.assert(MaterialD.debugCheckHasMaterialLocalizations(context));
D.assert(material_.debugCheckHasMaterial(context));
D.assert(material_.debugCheckHasMaterialLocalizations(context));
D.assert(() => {
if (context.ancestorWidgetOfExactType(typeof(Stepper)) != null) {
throw new UIWidgetsError(

2
com.unity.uiwidgets/Runtime/material/switch.cs


}
Widget buildMaterialSwitch(BuildContext context) {
D.assert(MaterialD.debugCheckHasMaterial(context));
D.assert(material_.debugCheckHasMaterial(context));
ThemeData theme = Theme.of(context);
bool isDark = theme.brightness == Brightness.dark;

6
com.unity.uiwidgets/Runtime/material/tabs.cs


}
public override Widget build(BuildContext context) {
D.assert(MaterialD.debugCheckHasMaterial(context));
D.assert(material_.debugCheckHasMaterial(context));
float height = 0f;
Widget label = null;

public override void didChangeDependencies() {
base.didChangeDependencies();
D.assert(MaterialD.debugCheckHasMaterial(context));
D.assert(material_.debugCheckHasMaterial(context));
_updateTabController();
_initIndicatorPainter();
}

}
public override Widget build(BuildContext context) {
D.assert(MaterialD.debugCheckHasMaterialLocalizations(context));
D.assert(material_.debugCheckHasMaterialLocalizations(context));
if (_controller.length == 0) {
return new Container(

2
com.unity.uiwidgets/Runtime/material/text_field.cs


public override Widget build(BuildContext context) {
base.build(context); // See AutomaticKeepAliveClientMixin.
D.assert(MaterialD.debugCheckHasMaterial(context));
D.assert(material_.debugCheckHasMaterial(context));
D.assert(WidgetsD.debugCheckHasDirectionality(context));
D.assert(
!(widget.style != null && widget.style.inherit == false &&

2
com.unity.uiwidgets/Runtime/material/theme_data.cs


public readonly MaterialTapTargetSize materialTapTargetSize;
public readonly bool applyElevationOverlayColor;
public readonly PageTransitionsTheme pageTransitionsTheme;
public readonly AppBarTheme appBarTheme;

2
com.unity.uiwidgets/Runtime/material/timer.cs


public string format(BuildContext context) {
D.assert(WidgetsD.debugCheckHasMediaQuery(context));
D.assert(MaterialD.debugCheckHasMaterialLocalizations(context));
D.assert(material_.debugCheckHasMaterialLocalizations(context));
MaterialLocalizations localizations = MaterialLocalizations.of(context);
return localizations.formatTimeOfDay(
this,

1
com.unity.uiwidgets/Runtime/material/tooltip.cs


using System;
using Unity.UIWidgets.animation;
using Unity.UIWidgets.async;
using Unity.UIWidgets.async2;
using Unity.UIWidgets.foundation;
using Unity.UIWidgets.gestures;
using Unity.UIWidgets.painting;

1
com.unity.uiwidgets/Runtime/material/typography.cs


using uiwidgets;
using Unity.UIWidgets.foundation;
using Unity.UIWidgets.ui;
using TextStyle = Unity.UIWidgets.painting.TextStyle;

9
com.unity.uiwidgets/Runtime/material/user_accounts_drawer_header.cs


using System;
using System.Collections.Generic;
using System.Linq;
using uiwidgets;
using Unity.UIWidgets.animation;
using Unity.UIWidgets.foundation;
using Unity.UIWidgets.gestures;

public override Widget build(BuildContext context) {
D.assert(WidgetsD.debugCheckHasDirectionality(context));
D.assert(MaterialD.debugCheckHasMaterialLocalizations(context));
D.assert(MaterialD.debugCheckHasMaterialLocalizations(context));
D.assert(material_.debugCheckHasMaterialLocalizations(context));
D.assert(material_.debugCheckHasMaterialLocalizations(context));
ThemeData theme = Theme.of(context);
List<Widget> children = new List<Widget> { };

}
public override Widget build(BuildContext context) {
D.assert(MaterialD.debugCheckHasMaterial(context));
D.assert(MaterialD.debugCheckHasMaterialLocalizations(context));
D.assert(material_.debugCheckHasMaterial(context));
D.assert(material_.debugCheckHasMaterialLocalizations(context));
return new DrawerHeader(
decoration: widget.decoration ?? new BoxDecoration(
color: Theme.of(context).primaryColor

29
com.unity.uiwidgets/Runtime/material/elevation_overlay.cs


using Unity.UIWidgets.material;
using Unity.UIWidgets.widgets;
using UnityEngine;
using Color = Unity.UIWidgets.ui.Color;
namespace uiwidgets {
public class ElevationOverlay {
private ElevationOverlay() {
}
public static Color applyOverlay(BuildContext context, Color color, float elevation) {
ThemeData theme = Theme.of(context);
if (elevation > 0.0f &&
theme.applyElevationOverlayColor &&
color == theme.colorScheme.surface) {
return Color.alphaBlend(overlayColor(context, elevation), color);
}
return color;
}
public static Color overlayColor(BuildContext context, float elevation) {
ThemeData theme = Theme.of(context);
float opacity = (4.5f * Mathf.Log(elevation + 1) + 2) / 100.0f;
return theme.colorScheme.onSurface.withOpacity(opacity);
}
}
}

11
com.unity.uiwidgets/Runtime/material/elevation_overlay.cs.meta


fileFormatVersion: 2
guid: 0ce3a9160c85732489a699abb00fe1d5
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
正在加载...
取消
保存