mirror of
https://github.com/flutter/samples.git
synced 2026-07-16 05:52:01 +00:00
Flutter 3.29 beta (#2571)
This commit is contained in:
@@ -12,20 +12,11 @@ class AuthorsScreen extends StatelessWidget {
|
||||
final String title;
|
||||
final ValueChanged<Author> onTap;
|
||||
|
||||
const AuthorsScreen({
|
||||
required this.onTap,
|
||||
this.title = 'Authors',
|
||||
super.key,
|
||||
});
|
||||
const AuthorsScreen({required this.onTap, this.title = 'Authors', super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Text(title),
|
||||
),
|
||||
body: AuthorList(
|
||||
authors: libraryInstance.allAuthors,
|
||||
onTap: onTap,
|
||||
),
|
||||
);
|
||||
appBar: AppBar(title: Text(title)),
|
||||
body: AuthorList(authors: libraryInstance.allAuthors, onTap: onTap),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user