Customization

The EpubReader widget has several properties you can use to customize the look:

  • epubUrl: The URL of the EPUB file to load.
  • backgroundColor: Background color of the reader.
  • textColor: Color of the text in the content.
  • settingsBackgroundColor: Background color of the settings overlay.
  • settingsTextColor: Text color for the settings overlay.
  • appBarColor: Background color of the AppBar.
  • appBarTextColor: Text color of the AppBar title.
  • drawerBackgroundColor: Background color of the chapter drawer.
  • drawerTextColor: Text color of the chapter titles in the drawer.
  • navigationBarColor: Background color of the navigation bar.
  • navigationTextColor: Text color for the navigation bar items.
  • appBarIconColor: Color of the icons on the AppBar.
  • appBarIconDisabledColor: Color of the disabled icons on the AppBar.

Users can also customize font size, line height, and content padding using the settings modal.

Example

For a more detailed example of how to use the package, see the example/ folder in the repository.

Contributing

Contributions are welcome! Please open issues or submit pull requests on the GitHub repository.

Libraries

vector_epub_reader