ssDefunct method
- covariant MissileSite site
MS.ssDefunct state widget tree for missile site
The covariant keyword is used to inform Dart that sm
will be a subclass of
SamModel
and not SamModel
specifically.
Implementation
Widget ssDefunct(covariant MissileSite site) {
String siteName = site.cfg.getHot('siteName') ?? "no-name";
return Column(
children:[
Spacer(),
Center(child: //Text("defunct")))]
Container(
margin:EdgeInsets.symmetric(horizontal: 10.0),
decoration:BoxDecoration(
color:Colors.yellow,
border: Border.all(
width: 3,
color: Colors.black,
),
borderRadius: BorderRadius.all(
const Radius.circular(8),
),
),
alignment:Alignment.center,
height:200,
child: RichText(text:TextSpan(text:"Site ",style:TextStyle(fontSize:22.0,color:Colors.red),
children:[TextSpan(text:"$siteName",style:TextStyle(fontWeight:FontWeight.bold)),TextSpan(text:" has been mothballed")]
)
),
),
),
Spacer(),
],
);
}