Skip to content

Instantly share code, notes, and snippets.

@jtmuller5
Last active January 13, 2021 00:59
Show Gist options
  • Select an option

  • Save jtmuller5/255c32c3a8bbeb022887f7947fcca93e to your computer and use it in GitHub Desktop.

Select an option

Save jtmuller5/255c32c3a8bbeb022887f7947fcca93e to your computer and use it in GitHub Desktop.
class VideoTimeRemaining extends ViewModelWidget<StackedVideoViewModel> {
@override
Widget build(BuildContext context, StackedVideoViewModel model) {
return Container(
padding: EdgeInsets.only(bottom: 8, right: 8),
height: model.thumbnailHeight,
width: model.thumbnailWidth,
child: Align(
alignment: Alignment.bottomRight,
child: Container(
child: Text(
model.timeRemainingString,
style: TextStyle(color: Colors.white),
),
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment