mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Merge pull request #428 from abarth/stocks_visuals
Fix visual bugs in Stocks
This commit is contained in:
commit
cf193ccb9b
@ -68,8 +68,11 @@ class Drawer extends StatefulComponent {
|
||||
// while dragging.
|
||||
_performance.attachedForce = kDefaultSpringForce;
|
||||
|
||||
if (navigator != null)
|
||||
navigator.pushState(this, (_) => _performance.reverse());
|
||||
if (navigator != null) {
|
||||
scheduleMicrotask(() {
|
||||
navigator.pushState(this, (_) => _performance.reverse());
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
void syncFields(Drawer source) {
|
||||
@ -85,7 +88,8 @@ class Drawer extends StatefulComponent {
|
||||
child: new ColorTransition(
|
||||
performance: _performance,
|
||||
direction: showing ? Direction.forward : Direction.reverse,
|
||||
color: new AnimatedColorValue(colors.transparent, end: const Color(0x7F000000))
|
||||
color: new AnimatedColorValue(colors.transparent, end: const Color(0x7F000000)),
|
||||
child: new Container()
|
||||
),
|
||||
onGestureTap: handleMaskTap
|
||||
);
|
||||
|
||||
@ -34,7 +34,6 @@ const double _kMinTabWidth = 72.0;
|
||||
const double _kMaxTabWidth = 264.0;
|
||||
const double _kRelativeMaxTabWidth = 56.0;
|
||||
const EdgeDims _kTabLabelPadding = const EdgeDims.symmetric(horizontal: 12.0);
|
||||
const TextStyle _kTabTextStyle = const TextStyle(textAlign: TextAlign.center);
|
||||
const int _kTabIconSize = 24;
|
||||
const double _kTabBarScrollDrag = 0.025;
|
||||
const Duration _kTabBarScroll = const Duration(milliseconds: 200);
|
||||
@ -322,7 +321,7 @@ class Tab extends Component {
|
||||
|
||||
Widget _buildLabelText() {
|
||||
assert(label.text != null);
|
||||
return new Text(label.text, style: _kTabTextStyle);
|
||||
return new Text(label.text);
|
||||
}
|
||||
|
||||
Widget _buildLabelIcon() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user