Skip to content

Commit

Permalink
Merge pull request #105 from appKom/forever-alone
Browse files Browse the repository at this point in the history
  • Loading branch information
AmundBerge authored Feb 15, 2025
2 parents 5f03fe3 + e6dd1d5 commit f38258e
Show file tree
Hide file tree
Showing 4 changed files with 155 additions and 0 deletions.
Binary file added assets/images/forever_alone.webp
Binary file not shown.
143 changes: 143 additions & 0 deletions lib/pages/games/songs/forever_alone.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
import 'package:flutter/material.dart';

import '/components/online_scaffold.dart';
import '/theme/theme.dart';

int year = DateTime.now().year;

class ForeverAlonePage extends ScrollablePage {
const ForeverAlonePage({super.key});

String _getText() {
return '''
Sangtekster av Kakkmaddafakka
''';
}

List<List<String>> _getTextLines() {
return [
["Alle i appkom", "No one can say I didn't try"],
["Alle fra Oslo", "Tried everything to make you feel what I feel"],
["Har hatt friår", "Well, I guess I pushed to hard"],
["Har tettet doen på A4", "And now you're slipping away"],
["Alle som ikke er kompilert", "Feels like my love for you"],
["Verten(e)", "Is stopping you from being you"],
["Har overlevd algdat", "You shine best without me"],
["Skal ha nattmat", "Like all the ones I had before"],
["Jentene", "I am forever alone"],
["Digger sushi", "Home alone eating sushi for two"],
["Har vært/er leder i verv i Online", "Home alone and I'm waiting for someone who never shows up"],
["De(n) som kom sist", "Ooh, and I'm lonely, I'm angry I'm tired"],
["Har kontet", "You're only giving me drips of your love"],
["Big spender på byen", "Appointments, you've been breaking them all"],
["Den som skal hoste nach", "It's like a never ending story"],
["Har blitt kastet ut av et utested", "I give and you take and I give"],
["Crusher på Jim Kurose", "Feels like my love for you"],
["Har traktet før", "Is stopping you from being you"],
["Gikk rett på studie etter vgs", "You shine best without me"],
["Har dusjet med noen andre", "Like all the ones I had before"],
["Guttene", "I am forever alone"],
["Har kjæreste", "When I held your hand you were sincere"],
["Har vært på tinderdate", "But did you ever think about me when I wasn't near you?"],
["Har fått sparken", "Why would you ever put me first?"],
["Alle som er '04", "You are second to none"],
["Alle fra Bergen", "I wanted to leave, I tried to find someone new"],
["Bor på Buran", "But I always end up still wanting you"],
["Har spydd på A4", "Why do I do this to myself?"],
["Tar opp fag", "Feels like my love for you"],
["Går med kjole", "Is stopping you from being you"],
["Har grått i $year", "You shine best without me"],
["Har jukset på eksamen", "Like all the ones I had before"],
["Har farget håret sitt før", "I am forever alone"],
["Har tatovering (vis)", "When I'm with you, you tell me you love me"],
["Den kuleste i rommet", "When you're not I don't even exist"],
["Har vært på dobbeldate", "If I ask you if you want to hang with me"],
["Alle trøndere", "You got a thousand excuses rehearsed"],
["Har bart", "But when you're drunk and got no place to hide"],
["Har fylleringt noen", "Who's the one you always call?"],
["Har lappen", "Feels like my love for you"],
["Alle fra bøgda", "Is stopping you from being you"],
["Elsker denne sangen", "You shine best without me"],
["Går med briller eller linser", "Like all the ones I had before"],
["Har knust mobilskjerm", "I am forever alone"],
["Har byttet studie", "My love for you"],
["Har vært på TV", "Is stopping you from being you"],
["Går med dress", "You shine best without me"],
["Sier «er på vei» mens de er hjemme", "Like all the ones I had before"],
["Single pringle", "I am forever alone"],
];
}

@override
Widget content(BuildContext context) {
final padding = MediaQuery.of(context).padding + OnlineTheme.horizontalPadding;

return Padding(
padding: EdgeInsets.only(top: padding.top, bottom: padding.bottom) + EdgeInsets.symmetric(vertical: 64),
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
SizedBox(
height: 267,
child: Image.asset(
'assets/images/forever_alone.webp',
fit: BoxFit.cover,
),
),
Padding(
padding: EdgeInsets.only(left: padding.left, right: padding.right),
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
const SizedBox(height: 24),
Text(
'Forever Alone',
style: OnlineTheme.header(),
),
const SizedBox(height: 24),
Text(
_getText(),
style: OnlineTheme.textStyle().copyWith(fontStyle: FontStyle.italic),
),
Column(
children: List.generate(
_getTextLines().length,
(index){
return SizedBox(
height: 80,
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Expanded(
child: Text(
_getTextLines()[index][0],
style: index % 2 == 0 ? OnlineTheme.textStyle() : OnlineTheme.textStyle().copyWith(fontWeight: FontWeight.bold),
maxLines: 10,
overflow: TextOverflow.ellipsis,
),
),
SizedBox(
width: 20,
),
Expanded(
child: Text(
_getTextLines()[index][1],
style: index % 2 == 0 ? OnlineTheme.textStyle() : OnlineTheme.textStyle().copyWith(fontWeight: FontWeight.bold),
maxLines: 10,
overflow: TextOverflow.ellipsis,
),
),
],
),
);
}
),
),
],
),
),
],
),
);
}
}
5 changes: 5 additions & 0 deletions lib/pages/games/songs/songs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ class DrikkeSanger extends StatelessWidget {
imageSource: 'assets/images/we_like_to_drink.png',
onTap: () => context.go('/social/we_like_to_drink'),
),
SongCard(
name: 'Forever Alone',
imageSource: 'assets/images/forever_alone.webp',
onTap: () => context.go('/social/forever_alone'),
)
],
),
],
Expand Down
7 changes: 7 additions & 0 deletions lib/router.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import '/pages/games/songs/lambo.dart';
import '/pages/games/songs/nu_klinger.dart';
import '/pages/games/songs/studenter_visen.dart';
import '/pages/games/songs/we_like_to_drink.dart';
import '/pages/games/songs/forever_alone.dart';
import '/pages/games/spin_line_page.dart';
import 'components/animated_button.dart';
import 'components/navbar.dart';
Expand Down Expand Up @@ -247,6 +248,12 @@ final GoRouter router = GoRouter(
return WeLikeToDrinkPage();
},
),
GoRoute(
path: 'forever_alone',
builder: (context, state) {
return ForeverAlonePage();
},
),
GoRoute(
path: 'dice',
builder: (context, state) {
Expand Down

0 comments on commit f38258e

Please sign in to comment.