Skip to content

Instantly share code, notes, and snippets.

@cavin-macwan
Created March 8, 2023 08:18
Show Gist options
  • Select an option

  • Save cavin-macwan/8870fd8ab59857344fb5919c5c7a9f2f to your computer and use it in GitHub Desktop.

Select an option

Save cavin-macwan/8870fd8ab59857344fb5919c5c7a9f2f to your computer and use it in GitHub Desktop.
class BookListPage extends StatelessWidget {
const BookListPage({
super.key,
@PathParam('id') required this.id,
});
final int id;
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: Text(id.toString()),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment