Lint code according to the public_member_api_docs rule. Make AlbumPageState widget private.
This commit is contained in:
parent
2d347c0ad0
commit
88f50f1406
@ -11,6 +11,7 @@ void main() {
|
|||||||
runApp(MyApp());
|
runApp(MyApp());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// The main widget of example app
|
||||||
class MyApp extends StatefulWidget {
|
class MyApp extends StatefulWidget {
|
||||||
@override
|
@override
|
||||||
_MyAppState createState() => _MyAppState();
|
_MyAppState createState() => _MyAppState();
|
||||||
@ -142,16 +143,19 @@ class _MyAppState extends State<MyApp> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// The album page widget
|
||||||
class AlbumPage extends StatefulWidget {
|
class AlbumPage extends StatefulWidget {
|
||||||
|
/// Album object to show in the page
|
||||||
final Album album;
|
final Album album;
|
||||||
|
|
||||||
|
/// The constructor of AlbumPage
|
||||||
AlbumPage(Album album) : album = album;
|
AlbumPage(Album album) : album = album;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
State<StatefulWidget> createState() => AlbumPageState();
|
State<StatefulWidget> createState() => _AlbumPageState();
|
||||||
}
|
}
|
||||||
|
|
||||||
class AlbumPageState extends State<AlbumPage> {
|
class _AlbumPageState extends State<AlbumPage> {
|
||||||
List<Medium>? _media;
|
List<Medium>? _media;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@ -209,9 +213,12 @@ class AlbumPageState extends State<AlbumPage> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// The viewer page widget
|
||||||
class ViewerPage extends StatelessWidget {
|
class ViewerPage extends StatelessWidget {
|
||||||
|
/// The medium object to show in the page
|
||||||
final Medium medium;
|
final Medium medium;
|
||||||
|
|
||||||
|
/// The constructor of ViewerPage
|
||||||
ViewerPage(Medium medium) : medium = medium;
|
ViewerPage(Medium medium) : medium = medium;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@ -248,9 +255,12 @@ class ViewerPage extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// The video provider widget
|
||||||
class VideoProvider extends StatefulWidget {
|
class VideoProvider extends StatefulWidget {
|
||||||
|
/// The identifier of medium
|
||||||
final String mediumId;
|
final String mediumId;
|
||||||
|
|
||||||
|
/// The constructor of VideoProvider
|
||||||
const VideoProvider({
|
const VideoProvider({
|
||||||
required this.mediumId,
|
required this.mediumId,
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user