2020-09-30 03:23:01 +00:00
|
|
|
import 'package:flutter/material.dart';
|
2020-09-30 08:20:27 +00:00
|
|
|
import 'package:transparent_image/transparent_image.dart';
|
2020-09-30 03:23:01 +00:00
|
|
|
|
|
|
|
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(
|
2020-09-30 08:20:27 +00:00
|
|
|
body: NestedScrollView(
|
|
|
|
headerSliverBuilder: (context, innerBoxIsScrolled) => [
|
|
|
|
SliverOverlapAbsorber(
|
|
|
|
sliver: SliverSafeArea(
|
|
|
|
top: false,
|
|
|
|
sliver: SliverAppBar(
|
|
|
|
title: Text("View listing"),
|
|
|
|
pinned: true,
|
|
|
|
flexibleSpace: FadeInImage.memoryNetwork(
|
|
|
|
placeholder: kTransparentImage,
|
|
|
|
image: 'https://lynnesbian.space/res/ceres/lesbun_full.jpg',
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
),
|
|
|
|
expandedHeight: 200,
|
|
|
|
automaticallyImplyLeading: false, // remove the useless back button
|
|
|
|
),
|
|
|
|
),
|
|
|
|
handle: NestedScrollView.sliverOverlapAbsorberHandleFor(context),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
body: ListView(
|
|
|
|
children: [
|
|
|
|
ListTile(
|
|
|
|
title: Text("ID"),
|
|
|
|
trailing: Text(id),
|
|
|
|
),
|
|
|
|
Divider(),
|
|
|
|
ListTile(
|
|
|
|
title: Text("Price"),
|
|
|
|
trailing: Text("¥12345")
|
|
|
|
)
|
|
|
|
],
|
|
|
|
)
|
2020-09-30 03:23:01 +00:00
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|