Created
December 9, 2019 00:05
-
-
Save Reprevise/c0bd50b6e61d303bb1d78e68c7412e3e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
final Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
theme: ThemeData.dark().copyWith(scaffoldBackgroundColor: darkBlue), | |
debugShowCheckedModeBanner: false, | |
home: Scaffold( | |
body: Center( | |
child: MyWidget(), | |
), | |
), | |
); | |
} | |
} | |
class MyWidget extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Container( | |
height: 200, | |
child: Card( | |
child: Row( | |
mainAxisSize: MainAxisSize.max, | |
crossAxisAlignment: CrossAxisAlignment.start, | |
children: [ | |
Container( | |
padding: EdgeInsets.all(8), | |
color: Colors.red, | |
), | |
Expanded( | |
child: Container( | |
padding: EdgeInsets.all(4), | |
child: Column( | |
children: [ | |
Row( | |
children: [ | |
Text( | |
"Spell", | |
style: TextStyle(fontSize: 24), | |
textAlign: TextAlign.start, | |
), | |
], | |
), | |
Text( | |
"This is a description of some kind tho like legit idk"), | |
], | |
), | |
), | |
), | |
Center(child: Icon(Icons.arrow_right)), | |
], | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment