Skip to content

obi-tec/subtitle-view

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Package thats fetch data from webVtt url and show it based on milliseconds.

Features

This package allows you to customize the display of subtitle, like fontSize, fontFamily, color, backgroundColor and text border color.

Getting started

To use the package, you will need to set a SubtitleController, that will receive the webVtt url. After That, you will pass this parameter to the SubtitleView. Other parameter that is necessary is currentTimeInMilliseconds, this parameter will show the correct subtitle based on time.

Customization

You can change all the parameters of textStyle to customize size, fonts, colors and fontWeigth. SubtitleView( currentTimeInMilliseconds: 1222, subtitleController: SubtitleController("webVttUrlHere"), textColor : Colors.blue, borderColor: Colors.red, fontSize : 23, fontWeight : FontWeight.w700, backgroundSubtitleColor : const Color.fromRGBO(12, 12, 12, 0.6), fontFamily : "Your font here" );

Additional information

Please open an issue if you find any bugs

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages