move semantics inside of opacity animation (#19960)
This commit is contained in:
parent
b2eed9a6da
commit
7e2434c8ff
@ -458,13 +458,19 @@ class _PopupMenu<T> extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
child: new IntrinsicWidth(
|
child: new IntrinsicWidth(
|
||||||
stepWidth: _kMenuWidthStep,
|
stepWidth: _kMenuWidthStep,
|
||||||
|
child: new Semantics(
|
||||||
|
scopesRoute: true,
|
||||||
|
namesRoute: true,
|
||||||
|
explicitChildNodes: true,
|
||||||
|
label: semanticLabel,
|
||||||
child: new SingleChildScrollView(
|
child: new SingleChildScrollView(
|
||||||
padding: const EdgeInsets.symmetric(
|
padding: const EdgeInsets.symmetric(
|
||||||
vertical: _kMenuVerticalPadding
|
vertical: _kMenuVerticalPadding
|
||||||
),
|
),
|
||||||
child: new ListBody(children: children),
|
child: new ListBody(children: children),
|
||||||
)
|
),
|
||||||
)
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
return new AnimatedBuilder(
|
return new AnimatedBuilder(
|
||||||
@ -479,15 +485,9 @@ class _PopupMenu<T> extends StatelessWidget {
|
|||||||
alignment: AlignmentDirectional.topEnd,
|
alignment: AlignmentDirectional.topEnd,
|
||||||
widthFactor: width.evaluate(route.animation),
|
widthFactor: width.evaluate(route.animation),
|
||||||
heightFactor: height.evaluate(route.animation),
|
heightFactor: height.evaluate(route.animation),
|
||||||
child: new Semantics(
|
|
||||||
scopesRoute: true,
|
|
||||||
namesRoute: true,
|
|
||||||
explicitChildNodes: true,
|
|
||||||
label: semanticLabel,
|
|
||||||
child: child,
|
child: child,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
child: child,
|
child: child,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user