From 88f50f14067da2f79f3d982079d5a5802747eb1d Mon Sep 17 00:00:00 2001 From: Wenqi Li Date: Mon, 25 Mar 2024 03:37:29 +0800 Subject: [PATCH] Lint code according to the public_member_api_docs rule. Make AlbumPageState widget private. --- example/lib/main.dart | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/example/lib/main.dart b/example/lib/main.dart index d5ad526..56fcb85 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -11,6 +11,7 @@ void main() { runApp(MyApp()); } +/// The main widget of example app class MyApp extends StatefulWidget { @override _MyAppState createState() => _MyAppState(); @@ -142,16 +143,19 @@ class _MyAppState extends State { } } +/// The album page widget class AlbumPage extends StatefulWidget { + /// Album object to show in the page final Album album; + /// The constructor of AlbumPage AlbumPage(Album album) : album = album; @override - State createState() => AlbumPageState(); + State createState() => _AlbumPageState(); } -class AlbumPageState extends State { +class _AlbumPageState extends State { List? _media; @override @@ -209,9 +213,12 @@ class AlbumPageState extends State { } } +/// The viewer page widget class ViewerPage extends StatelessWidget { + /// The medium object to show in the page final Medium medium; + /// The constructor of ViewerPage ViewerPage(Medium medium) : medium = medium; @override @@ -248,9 +255,12 @@ class ViewerPage extends StatelessWidget { } } +/// The video provider widget class VideoProvider extends StatefulWidget { + /// The identifier of medium final String mediumId; + /// The constructor of VideoProvider const VideoProvider({ required this.mediumId, });