Skip to content

Commit

Permalink
update to
Browse files Browse the repository at this point in the history
  • Loading branch information
suragch committed Feb 3, 2023
1 parent 5781544 commit 304bd7c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- Bump to stable release versioning
- Draw progress bar to match thumb drag location (@navaronbracke) (#34)
- Update current progress label while dragging thumb
- Rename `textTheme.bodyText1` to `textTheme.bodyLarge`

## [0.11.0] - October 7, 2022

Expand Down
2 changes: 1 addition & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ class _FullExampleState extends State<FullExample> {
}

Wrap _labelSizeButtons() {
final fontColor = Theme.of(context).textTheme.bodyText1?.color;
final fontColor = Theme.of(context).textTheme.bodyLarge?.color;
return Wrap(children: [
OutlinedButton(
child: const Text('standard font size'),
Expand Down
6 changes: 3 additions & 3 deletions lib/audio_video_progress_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ class ProgressBar extends LeafRenderObjectWidget {

/// The [TextStyle] used by the time labels.
///
/// By default it is [TextTheme.bodyText1].
/// By default it is [TextTheme.bodyLarge].
final TextStyle? timeLabelTextStyle;

/// The extra space between the time labels and the progress bar.
Expand All @@ -256,7 +256,7 @@ class ProgressBar extends LeafRenderObjectWidget {
RenderObject createRenderObject(BuildContext context) {
final theme = Theme.of(context);
final primaryColor = theme.colorScheme.primary;
final textStyle = timeLabelTextStyle ?? theme.textTheme.bodyText1;
final textStyle = timeLabelTextStyle ?? theme.textTheme.bodyLarge;
return _RenderProgressBar(
progress: progress,
total: total,
Expand Down Expand Up @@ -287,7 +287,7 @@ class ProgressBar extends LeafRenderObjectWidget {
void updateRenderObject(BuildContext context, RenderObject renderObject) {
final theme = Theme.of(context);
final primaryColor = theme.colorScheme.primary;
final textStyle = timeLabelTextStyle ?? theme.textTheme.bodyText1;
final textStyle = timeLabelTextStyle ?? theme.textTheme.bodyLarge;
(renderObject as _RenderProgressBar)
..progress = progress
..total = total
Expand Down

0 comments on commit 304bd7c

Please sign in to comment.