Rename BannerLocation enum values (#11960)

* Rename BannerLocation enum values

 * topLeft -> topStart
 * topRight -> topEnd
 * bottomLeft -> bottomStart
 * bottomRight -> bottomEnd

These names will make it easier for us to adjust the location of the
banner in right-to-left mode.

See the discussion on flutter-dev.

* Add RTL support for Banner

Fixes #11905
This commit is contained in:
Adam Barth
2017-09-07 21:12:28 -07:00
committed by GitHub
parent 57e2df1139
commit 1792766a88
3 changed files with 192 additions and 41 deletions

View File

@@ -197,7 +197,7 @@ class GalleryHomeState extends State<GalleryHome> with SingleTickerProviderState
opacity: new CurvedAnimation(parent: _controller, curve: Curves.easeInOut),
child: const Banner(
message: 'PREVIEW',
location: BannerLocation.topRight,
location: BannerLocation.topEnd,
)
),
]