appleOSLayout method
Layout for Apple OS devices. 苹果系列设备的选择器布局
Implementation
@override
Widget appleOSLayout(BuildContext context) {
return Stack(
children: <Widget>[
Positioned.fill(
child: Selector<DefaultAssetPickerProvider, bool>(
selector: (_, DefaultAssetPickerProvider p) => p.hasAssetsToDisplay,
builder: (_, bool hasAssetsToDisplay, __) => AnimatedSwitcher(
duration: switchingPathDuration,
child: hasAssetsToDisplay
? Stack(
children: <Widget>[
RepaintBoundary(
child: Stack(
children: <Widget>[
Positioned.fill(
child: assetsGridBuilder(context),
),
if ((!isSingleAssetMode || isAppleOS) &&
isPreviewEnabled)
PositionedDirectional(
bottom: 0.0,
child: bottomActionBar(context),
),
],
),
),
pathEntityListBackdrop(context),
pathEntityListWidget(context),
],
)
: loadingIndicator(context),
),
),
),
appBar(context),
],
);
}