[video_player] Update example app to replace ButtonBar with OverflowBar (#5274)

This PR replaces `ButtonBar` with `OverflowBar` in `video_player/example`  in preparation of `ButtonBar` deprecation.

Related to https://github.com/flutter/flutter/issues/127955
This commit is contained in:
Taha Tesser
2023-10-31 18:21:50 +02:00
committed by GitHub
parent b195bde182
commit e7ebc2071f
3 changed files with 25 additions and 16 deletions

View File

@ -1,3 +1,7 @@
## 2.8.1
* Updates the example app: replaces `ButtonBar` with `OverflowBar` widget.
## 2.8.0
* Adds support for macOS.

View File

@ -121,21 +121,26 @@ class _ExampleCard extends StatelessWidget {
leading: const Icon(Icons.airline_seat_flat_angled),
title: Text(title),
),
ButtonBar(
children: <Widget>[
TextButton(
child: const Text('BUY TICKETS'),
onPressed: () {
/* ... */
},
),
TextButton(
child: const Text('SELL TICKETS'),
onPressed: () {
/* ... */
},
),
],
Padding(
padding: const EdgeInsets.all(8.0),
child: OverflowBar(
alignment: MainAxisAlignment.end,
spacing: 8.0,
children: <Widget>[
TextButton(
child: const Text('BUY TICKETS'),
onPressed: () {
/* ... */
},
),
TextButton(
child: const Text('SELL TICKETS'),
onPressed: () {
/* ... */
},
),
],
),
),
],
),

View File

@ -3,7 +3,7 @@ description: Flutter plugin for displaying inline video with other Flutter
widgets on Android, iOS, and web.
repository: https://github.com/flutter/packages/tree/main/packages/video_player/video_player
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+video_player%22
version: 2.8.0
version: 2.8.1
environment:
sdk: ">=3.1.0 <4.0.0"