Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 21 additions & 17 deletions example/lib/pages/tile_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,27 @@ class TileBuilderPageState extends State<TileBuilderPage> {
children: [
tileWidget,
if (showLoadingTime || showCoordinates)
Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
if (showCoordinates)
Text(
'${coords.x} : ${coords.y} : ${coords.z}',
style: Theme.of(context).textTheme.headlineSmall,
),
if (showLoadingTime)
Text(
tile.loadFinishedAt == null
? 'Loading'
// sometimes result is negative which shouldn't happen, abs() corrects it
: '${(tile.loadFinishedAt!.millisecond - tile.loadStarted!.millisecond).abs()} ms',
style: Theme.of(context).textTheme.headlineSmall,
),
],
FittedBox(
fit: BoxFit.scaleDown,
alignment: Alignment.center,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
if (showCoordinates)
Text(
'${coords.x} : ${coords.y} : ${coords.z}',
style: Theme.of(context).textTheme.headlineSmall,
),
if (showLoadingTime)
Text(
tile.loadFinishedAt == null
? 'Loading'
// sometimes result is negative which shouldn't happen, abs() corrects it
: '${(tile.loadFinishedAt!.millisecond - tile.loadStarted!.millisecond).abs()} ms',
style: Theme.of(context).textTheme.headlineSmall,
),
],
),
),
],
),
Expand Down