Skip to content

Commit

Permalink
Remove images from songs
Browse files Browse the repository at this point in the history
  • Loading branch information
Nexerate committed Mar 9, 2025
1 parent dcfc90f commit 5d5f946
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 75 deletions.
55 changes: 20 additions & 35 deletions lib/pages/games/songs/studenter_visen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,47 +48,32 @@ hva har vi å bestille?
final padding = MediaQuery.of(context).padding + OnlineTheme.horizontalPadding;

return Padding(
padding: EdgeInsets.only(top: padding.top, bottom: padding.bottom) + const EdgeInsets.symmetric(vertical: 64),
padding: padding + const EdgeInsets.symmetric(vertical: 64),
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
SizedBox(
height: 267,
child: Image.asset(
'assets/images/studentervisen.png',
fit: BoxFit.cover,
),
const SizedBox(height: 24),
Text(
'Studenter Visen',
style: OnlineTheme.header(),
),
Padding(
padding: EdgeInsets.only(left: padding.left, right: padding.right),
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
const SizedBox(height: 24),
Text(
'Studenter Visen',
style: OnlineTheme.header(),
),
const SizedBox(height: 24),
MarkdownBody(
data: _getText(),
styleSheet: MarkdownStyleSheet.fromTheme(Theme.of(context)).copyWith(
p: OnlineTheme.textStyle(),
h1: TextStyle(color: OnlineTheme.current.fg),
h2: TextStyle(color: OnlineTheme.current.fg),
h3: TextStyle(color: OnlineTheme.current.fg),
h4: TextStyle(color: OnlineTheme.current.fg),
h5: TextStyle(color: OnlineTheme.current.fg),
h6: TextStyle(color: OnlineTheme.current.fg),
horizontalRuleDecoration: BoxDecoration(
border: Border(top: BorderSide(width: 1, color: OnlineTheme.current.border)),
),
),
),
const SizedBox(height: 24),
],
const SizedBox(height: 24),
MarkdownBody(
data: _getText(),
styleSheet: MarkdownStyleSheet.fromTheme(Theme.of(context)).copyWith(
p: OnlineTheme.textStyle(),
h1: TextStyle(color: OnlineTheme.current.fg),
h2: TextStyle(color: OnlineTheme.current.fg),
h3: TextStyle(color: OnlineTheme.current.fg),
h4: TextStyle(color: OnlineTheme.current.fg),
h5: TextStyle(color: OnlineTheme.current.fg),
h6: TextStyle(color: OnlineTheme.current.fg),
horizontalRuleDecoration: BoxDecoration(
border: Border(top: BorderSide(width: 1, color: OnlineTheme.current.border)),
),
),
),
const SizedBox(height: 24),
],
),
);
Expand Down
60 changes: 20 additions & 40 deletions lib/pages/games/songs/we_like_to_drink.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ And when we drink with *NAVN* \n
**3!** \n
**2!** \n
**1!** \n
---
### **Hvis glasset ikke er tømt:**
Why was he born so beautiful, why was he born at all? \n
He's no fucking use to anyone, he's no fucking use at all! \n
He's a cunt he's a cunt, he's a C U N T cunt!
''';
}

Expand All @@ -33,47 +28,32 @@ He's a cunt he's a cunt, he's a C U N T cunt!
final padding = MediaQuery.of(context).padding + OnlineTheme.horizontalPadding;

return Padding(
padding: EdgeInsets.only(top: padding.top, bottom: padding.bottom) + const EdgeInsets.symmetric(vertical: 64),
padding: padding + const EdgeInsets.symmetric(vertical: 64),
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
SizedBox(
height: 267,
child: Image.asset(
'assets/images/we_like_to_drink.png',
fit: BoxFit.cover,
),
const SizedBox(height: 24),
Text(
'We like to drink with',
style: OnlineTheme.header(),
),
Padding(
padding: EdgeInsets.only(left: padding.left, right: padding.right),
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
const SizedBox(height: 24),
Text(
'We like to drink with',
style: OnlineTheme.header(),
),
const SizedBox(height: 24),
MarkdownBody(
data: _getText(),
styleSheet: MarkdownStyleSheet.fromTheme(Theme.of(context)).copyWith(
p: OnlineTheme.textStyle(),
h1: TextStyle(color: OnlineTheme.current.fg),
h2: TextStyle(color: OnlineTheme.current.fg),
h3: TextStyle(color: OnlineTheme.current.fg),
h4: TextStyle(color: OnlineTheme.current.fg),
h5: TextStyle(color: OnlineTheme.current.fg),
h6: TextStyle(color: OnlineTheme.current.fg),
horizontalRuleDecoration: BoxDecoration(
border: Border(top: BorderSide(width: 1, color: OnlineTheme.current.border)),
),
),
),
const SizedBox(height: 24),
],
const SizedBox(height: 24),
MarkdownBody(
data: _getText(),
styleSheet: MarkdownStyleSheet.fromTheme(Theme.of(context)).copyWith(
p: OnlineTheme.textStyle(),
h1: TextStyle(color: OnlineTheme.current.fg),
h2: TextStyle(color: OnlineTheme.current.fg),
h3: TextStyle(color: OnlineTheme.current.fg),
h4: TextStyle(color: OnlineTheme.current.fg),
h5: TextStyle(color: OnlineTheme.current.fg),
h6: TextStyle(color: OnlineTheme.current.fg),
horizontalRuleDecoration: BoxDecoration(
border: Border(top: BorderSide(width: 1, color: OnlineTheme.current.border)),
),
),
),
const SizedBox(height: 24),
],
),
);
Expand Down

0 comments on commit 5d5f946

Please sign in to comment.