27 lines
656 B
Dart
27 lines
656 B
Dart
|
import 'package:flutter/material.dart';
|
||
|
|
||
|
class RouteViewListing extends StatefulWidget {
|
||
|
@override
|
||
|
_RouteViewListingState createState() => _RouteViewListingState();
|
||
|
}
|
||
|
|
||
|
class _RouteViewListingState extends State<RouteViewListing> {
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
final String id = ModalRoute.of(context).settings.arguments;
|
||
|
return Scaffold(
|
||
|
appBar: AppBar(
|
||
|
title: Text("View listing"),
|
||
|
automaticallyImplyLeading: false, // remove the useless back button
|
||
|
),
|
||
|
body: ListView(
|
||
|
children: [
|
||
|
ListTile(
|
||
|
title: Text("ID: $id")
|
||
|
)
|
||
|
]
|
||
|
)
|
||
|
);
|
||
|
}
|
||
|
}
|