Skip to content

Instantly share code, notes, and snippets.

@hansvdam
Created August 12, 2024 14:56
Show Gist options
  • Save hansvdam/d05c1a21ad1f43379a1430d84cedfb3c to your computer and use it in GitHub Desktop.
Save hansvdam/d05c1a21ad1f43379a1430d84cedfb3c to your computer and use it in GitHub Desktop.
Generated code from pixels2flutter.dev
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: HomeScreen(),
);
}
}
class HomeScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Color(0xFF4A4A4A),
appBar: AppBar(
backgroundColor: Color(0xFF4A4A4A),
elevation: 0,
leading: Icon(Icons.menu, color: Colors.white),
actions: [
Padding(
padding: const EdgeInsets.all(16.0),
child: Text(
'12:00',
style: TextStyle(color: Colors.white, fontSize: 16),
),
),
],
),
body: Column(
children: [
Container(
color: Color(0xFFB8D98D),
padding: EdgeInsets.symmetric(vertical: 16),
child: Center(
child: Text(
'BS-Kaart (9/17)',
style: TextStyle(
color: Colors.black,
fontSize: 20,
fontWeight: FontWeight.bold,
),
),
),
),
Container(
color: Color(0xFF4A4A4A),
padding: EdgeInsets.symmetric(vertical: 16),
child: Center(
child: Text(
'VKM 5G12',
style: TextStyle(
color: Colors.white,
fontSize: 20,
),
),
),
),
Expanded(
child: Container(
color: Color(0xFF4A4A4A),
),
),
Row(
children: [
Expanded(
child: Container(
color: Color(0xFFD3D3D3),
height: 150,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Icon(Icons.error_outline, size: 50, color: Colors.black),
SizedBox(height: 8),
Text(
'STORING',
style: TextStyle(
color: Colors.black,
fontSize: 20,
),
),
],
),
),
),
Expanded(
child: Container(
color: Color(0xFF007AFF),
height: 150,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Icon(Icons.warning, size: 50, color: Colors.white),
SizedBox(height: 8),
Text(
'INCIDENT',
style: TextStyle(
color: Colors.white,
fontSize: 20,
),
),
],
),
),
),
],
),
Container(
color: Color(0xFFD3D3D3),
height: 150,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Container(
color: Color(0xFF4A4A4A),
padding: EdgeInsets.symmetric(horizontal: 16, vertical: 8),
child: Text(
'5G12',
style: TextStyle(
color: Colors.white,
fontSize: 20,
),
),
),
SizedBox(height: 8),
Text(
'AFMELDEN',
style: TextStyle(
color: Colors.black,
fontSize: 20,
),
),
],
),
),
],
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment