Created
December 14, 2019 15:39
-
-
Save rrifafauzikomara/69978bd5169b1c5f68b4233615b3256e to your computer and use it in GitHub Desktop.
This file contains hidden or 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'; | |
class Storyline extends StatelessWidget { | |
Storyline(this.storyline); | |
final String storyline; | |
@override | |
Widget build(BuildContext context) { | |
var theme = Theme.of(context); | |
var textTheme = Theme.of(context).textTheme; | |
return Column( | |
crossAxisAlignment: CrossAxisAlignment.start, | |
children: [ | |
Text( | |
'Story line', | |
style: textTheme.subhead.copyWith(fontSize: 18.0), | |
), | |
SizedBox(height: 8.0), | |
Text( | |
storyline, | |
style: textTheme.body1.copyWith( | |
color: Colors.black45, | |
fontSize: 16.0, | |
), | |
), | |
Row( | |
mainAxisAlignment: MainAxisAlignment.end, | |
crossAxisAlignment: CrossAxisAlignment.end, | |
children: [ | |
Text( | |
'more', | |
style: textTheme.body1 | |
.copyWith(fontSize: 16.0, color: theme.accentColor), | |
), | |
Icon( | |
Icons.keyboard_arrow_down, | |
size: 18.0, | |
color: theme.accentColor, | |
), | |
], | |
), | |
], | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment