import'package:flutter/material.dart';voidmain()=>runApp(MyApp());classMyAppextendsStatelessWidget{@override
Widget build(BuildContext context){
Widget titleSection =newContainer(
padding:const EdgeInsets.all(32.0),
child:newRow(
children:[newExpanded(
child:newColumn(
crossAxisAlignment: CrossAxisAlignment.start,
children:[newContainer(
padding:const EdgeInsets.only(bottom:8.0),
child:newText('Oeschinen Lake Campground',
style:newTextStyle(
fontWeight: FontWeight.bold,),),),newText('Kandersteg, Switzerland',
style:newTextStyle(
color: Colors.grey[500],),),],),),newIcon(
Icons.star,
color: Colors.red[500],),newText('41'),],),);
Column buildButtonColumn(IconData icon, String label){
Color color = Theme.of(context).primaryColor;returnnewColumn(
mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.center,
children:[newIcon(icon, color: color,),newContainer(
margin:const EdgeInsets.only(top:8.0),
child:newText(
label,
style:newTextStyle(
fontSize:12.0,
fontWeight: FontWeight.w400,
color: color,),),)],);}
Widget buttonSection =newContainer(
child:newRow(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children:[buildButtonColumn(Icons.call,'Call'),buildButtonColumn(Icons.near_me,'Route'),buildButtonColumn(Icons.share,'Share'),],),);
Widget textSection =newContainer(
padding:const EdgeInsets.all(32.0),
child:newText('''
Lake Oeschinen lies at the foot of the Blüemlisalp in the Bernese Alps. Situated 1,578 meters above sea level, it is one of the larger Alpine Lakes. A gondola ride from Kandersteg, followed by a half-hour walk through pastures and pine forest, leads you to the lake, which warms to 20 degrees Celsius in the summer. Activities enjoyed here include rowing, and riding the summer toboggan run.''',
softWrap:true,),);returnnewMaterialApp(
title:'Demo',
home:Scaffold(
body:newListView(
children:[newImage.asset('images/lake.jpg',
height:240.0,
fit: BoxFit.cover,),
titleSection,
buttonSection,
textSection,],),),
theme:newThemeData(
primaryColor: Colors.blue,),);}}