Untitled
unknown
plain_text
2 years ago
4.1 kB
5
Indexable
import 'package:flutter/material.dart'; class TestWidget extends StatelessWidget { const TestWidget({Key? key}) : super(key: key); @override Widget build(BuildContext context) { double width = MediaQuery.of(context).size.width; double height = MediaQuery.of(context).size.height; return Scaffold( body: SafeArea( child: Container( width: width, height: height * 0.3, child: Padding( padding: const EdgeInsets.all(8.0), child: Card( child: Padding( padding: const EdgeInsets.all(8.0), child: Column( mainAxisAlignment: MainAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( "Thomas Kohl GmbH Lager", style: TextStyle( fontWeight: FontWeight.bold, ), ), Text( "test", ), Text( "QS-Liste", style: TextStyle(fontStyle: FontStyle.italic), ), Divider(), Row( children: [ Icon(Icons.abc_outlined), const SizedBox( width: 10, ), Expanded( child: Text( "Magdeburger Chaussee 18a Schonebeck OT Pretzien", ), ), ], ), Divider(), Row( children: [ Icon(Icons.lock_clock_outlined), const SizedBox( width: 10, ), Expanded( child: Text( "12:00 Uhr - 14:00 Uhr", ), ), ], ), Divider(), Row( mainAxisAlignment: MainAxisAlignment.spaceAround, crossAxisAlignment: CrossAxisAlignment.center, children: [ ElevatedButton.icon( label: Text('Ansehen'), style: ElevatedButton.styleFrom( minimumSize: Size(140, 40), backgroundColor: Colors.green, textStyle: const TextStyle( color: Colors.white, fontSize: 14, fontStyle: FontStyle.normal), ), onPressed: () {}, icon: Icon( Icons.favorite, size: 18.0, ), ), ElevatedButton.icon( label: Text('Start'), style: ElevatedButton.styleFrom( minimumSize: Size(140, 40), backgroundColor: Colors.green, textStyle: const TextStyle( color: Colors.white, fontSize: 14, fontStyle: FontStyle.normal), ), onPressed: () {}, icon: Icon( Icons.favorite, size: 18.0, ), ), ], ) ], ), ), ), ), ), ), ); } }
Editor is loading...