Skip to content

Instantly share code, notes, and snippets.

@rrifafauzikomara
Created December 14, 2019 15:39
Show Gist options
  • Save rrifafauzikomara/69978bd5169b1c5f68b4233615b3256e to your computer and use it in GitHub Desktop.
Save rrifafauzikomara/69978bd5169b1c5f68b4233615b3256e to your computer and use it in GitHub Desktop.
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