Created
July 12, 2021 11:53
-
-
Save nnamdei/f9ff291c3fb1ab69dfed0bfff1d2eb86 to your computer and use it in GitHub Desktop.
test
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:search_fm/data/programme/programme_model.dart'; | |
const List days = [ | |
{"label": "Mon", "day": "01"}, | |
{"label": "Tue", "day": "02"}, | |
{"label": "Wed", "day": "02"}, | |
{"label": "Thu", "day": "03"}, | |
{"label": "Fri", "day": "04"}, | |
{"label": "Sat", "day": "05"}, | |
{"label": "Sun", "day": "06"}, | |
]; | |
const List monday = [ | |
{ | |
"id": 1, | |
"name": "Wake up Morning Show", | |
"start": "6:00am", | |
"end": "8:00", | |
}, | |
{"id": 2, "name": "Morning Ride", "start": "8:00am", "end": "11:00am"}, | |
{"id": 3, "name": "News @10", "start": "10:00am", "end": "10:15am"}, | |
{"id": 4, "name": "Old Skool Songs", "start": "12:00pm", "end": "2:00pm"}, | |
{ | |
"id": 5, | |
"name": "De Afternoon Show (Indigenous Monday)", | |
"start": "2:00pm", | |
"end": "4:59pm" | |
}, | |
{"id": 6, "name": "Sports Gist", "start": "5:00pm", "end": " 5:30pm"}, | |
{"id": 7, "name": "Reggaelution", "start": "5:30pm", "end": "7:00pm"}, | |
{ | |
"id": 8, | |
"name": "Monday Evening Cruise", | |
"start": "7:00pm", | |
"end": "10:00pm" | |
}, | |
{"id": 9, "name": "News @ 8", "start": "8:00pm", "end": "8:30pm"}, | |
{ | |
"id": 10, | |
"name": "Late Night Whispers", | |
"start": "10:00pm", | |
"end": "12:00am" | |
} | |
]; | |
const List tuesday = [ | |
{"id": 1, "name": "Wake up Morning Show", "start": "6:00am", "end": "8:00"}, | |
{"id": 2, "name": "Morning Ride", "start": "8:00am", "end": "11:00am"}, | |
{"id": 3, "name": "News @10", "start": "10:00am", "end": "10:15am"}, | |
{"id": 4, "name": "Old Skool Songs", "start": "12:00pm", "end": "2:00pm"}, | |
{"id": 5, "name": "Technology Update", "start": "2:00pm", "end": "2:30pm"}, | |
{"id": 6, "name": "De Afternoon Show", "start": "2:30pm", "end": "5:00pm"}, | |
{"id": 7, "name": "Sports Gist", "start": "5:00pm", "end": "6:00pm"}, | |
{"id": 8, "name": "Top 6 @ 6", "start": "6:00pm", "end": "6:05pm"}, | |
{"id": 9, "name": "DJ Mix ", "start": "6:05pm", "end": "7:00pm"}, | |
{ | |
"id": 10, | |
"name": "Talk Your Own (The Repeat Broadcast)", | |
"start": "7:00pm", | |
"end": "7:30pm" | |
}, | |
{"id": 11, "name": "News @ 8", "start": "8:00pm", "end": "8:15pm"}, | |
{"id": 12, "name": "News @ 8", "start": "8:00pm", "end": "8:15pm"}, | |
{"id": 13, "name": "Believe it or Not", "start": "9:00pm", "end": "10:00pm"}, | |
{ | |
"id": 14, | |
"name": "Late Night Whisper", | |
"start": "10:00pm", | |
"end": "12:00am" | |
}, | |
]; | |
const List wednesday = [ | |
{"id": 1, "name": "Wake up Morning Show", "start": "6:00am", "end": "8:00"}, | |
{"id": 2, "name": "Morning Ride", "start": "8:00am", "end": "11:00am"}, | |
{"id": 3, "name": "News @10", "start": "10:00am", "end": "10:15am"}, | |
{"id": 4, "name": "Old Skool Songs", "start": "12:00pm", "end": "2:00pm"}, | |
{"id": 5, "name": "De Afternoon Show", "start": "2:00pm", "end": "4:00pm"}, | |
{"id": 6, "name": "BBC Story Story", "start": "04:00 pm", "end": "4:30 pm"}, | |
{ | |
"id": 7, | |
"name": "De Afternoon Show (Contd.)", | |
"start": "04:30 pm", | |
"end": " 5:00 pm" | |
}, | |
{"id": 8, "name": "Sport Gist", "start": "05:00 pm", "end": "06:00 pm"}, | |
{ | |
"id": 9, | |
"name": "Road Users (1st Wed. only)", | |
"start": "6:00pm", | |
"end": "6.30pm" | |
}, | |
{"id": 10, "name": "DJ Mix", "start": "6:00pm", "end": "8:00pm"}, | |
{"id": 11, "name": "News @8", "start": "8:00pm", "end": "8:15pm"}, | |
{"id": 12, "name": "Ladies Night", "start": "8:30pm", "end": "9:00pm"}, | |
{ | |
"id": 13, | |
"name": "Not Just a Pretty Face ", | |
"start": "9:00pm", | |
"end": "9:30pm" | |
}, | |
{ | |
"id": 14, | |
"name": "Ladies Night (Contd.)", | |
"start": "9:30pm", | |
"end": "10:00pm" | |
}, | |
{ | |
"id": 13, | |
"name": "Late Night Whispers", | |
"start": "10:00pm", | |
"end": "Late Night Whispers" | |
}, | |
]; | |
const List thursday = [ | |
{"id": 1, "name": "Wake up Morning Show", "start": "6:00am", "end": "8:00"}, | |
{"id": 2, "name": "Morning Ride", "start": "8:00am", "end": "11:00am"}, | |
{"id": 3, "name": "News @10", "start": "10:00am", "end": "10:15am"}, | |
{"id": 4, "name": "Old Skool Songs", "start": "12:00pm", "end": "2:00pm"}, | |
{"id": 5, "name": "De Afternoon Show", "start": "2:00pm", "end": "5:00pm"}, | |
{"id": 6, "name": "Sports Gist", "start": "5:00pm", "end": "6:00pm"}, | |
{"id": 7, "name": "Old Skool Jamz", "start": "12:16pm", "end": "1:59pm"}, | |
{"id": 8, "name": "De Afternoon Show", "start": "2:00pm", "end": "3:59pm"}, | |
{"id": 9, "name": "DJ Mix", "start": "6:00pm", "end": "7:00pm"}, | |
{"id": 10, "name": "Sports Gist", "start": "5:00pm", "end": "5:59pm"}, | |
{"id": 11, "name": "Pidgin Night", "start": "7:00pm", "end": "10:00pm"}, | |
{ | |
"id": 12, | |
"name": "Late Night with SFM", | |
"start": "10:00pm", | |
"end": "12:00am" | |
}, | |
]; | |
const List friday = [ | |
{"id": 1, "name": "Wake up Morning Show", "start": "6:00am", "end": "8:00"}, | |
{"id": 2, "name": "Morning Ride", "start": "8:00am", "end": "11:00am"}, | |
{"id": 3, "name": "News @10", "start": "10:00am", "end": "10:15am"}, | |
{ | |
"id": 4, | |
"name": "Towards the light", | |
"start": "11:00 am", | |
"end": "01:00 pm" | |
}, | |
{"id": 5, "name": "Old School Songs", "start": "1:00pm", "end": "02:00 pm"}, | |
{"id": 6, "name": "Naija Flavour Show", "start": "2:00 pm", "end": "4:00 pm"}, | |
{"id": 7, "name": "Movie Hour", "start": "4:00pm", "end": "5:00pm"}, | |
{"id": 13, "name": "Sports Gist", "start": "5:00pm", "end": "5:30pm"}, | |
{ | |
"id": 14, | |
"name": "T.G.I.F (Thank God It’s Friday)", | |
"start": "7:00pm", | |
"end": "8:00pm" | |
}, | |
{"id": 15, "name": "News @8", "start": "8:00pm", "end": "8:15pm"}, | |
{"id": 16, "name": "T.G.I.F continues", "start": "8:15pm", "end": "10:00pm"}, | |
{"id": 18, "name": "Club 923", "start": "10:00pm", "end": "12:00am"}, | |
]; | |
const List saturday = [ | |
{ | |
"id": 1, | |
"name": "Saturday Morning show", | |
"start": "7:00am", | |
"end": "9:00am" | |
}, | |
{ | |
"id": 2, | |
"name": "News Paper Headlines", | |
"start": "8:30am", | |
"end": " 8:45am" | |
}, | |
{ | |
"id": 3, | |
"name": "Talk Your Own (Fresh Episode)", | |
"start": "9:00am", | |
"end": "9:30am" | |
}, | |
{"id": 4, "name": "Staying Healthy", "start": "9:30am", "end": "10:00am"}, | |
{"id": 5, "name": "News @10", "start": "10:00am", "end": "10:15am"}, | |
{"id": 9, "name": "Sports Gist", "start": "11:00am", "end": "12:00pm"}, | |
{"id": 10, "name": "Old School Songs", "start": "12:00pm", "end": "1:59pm"}, | |
{"id": 11, "name": "The Shelf", "start": "2:00pm", "end": "3:00pm"}, | |
{"id": 12, "name": "Saturday Countdown", "start": "3:00pm", "end": "5:00pm"}, | |
{"id": 13, "name": "DJ Mix", "start": "5:00pm", "end": "8:00pm"}, | |
{ | |
"id": 14, | |
"name": "Campus Counselor (Every Last Saturday)", | |
"start": "6:30pm", | |
"end": "7:00pm" | |
}, | |
{"id": 15, "name": "African Songs", "start": "7:00pm", "end": "8:00pm"}, | |
{"id": 16, "name": "News @8", "start": "8:00pm", "end": "8:15pm"}, | |
{ | |
"id": 17, | |
"name": "Select (Upcoming Artiste Show)", | |
"start": "8:00pm", | |
"end": "10:00pm" | |
}, | |
{"id": 18, "name": "Low tempo songs", "start": "10:00pm", "end": "12:00am"}, | |
]; | |
const List sunday = [ | |
{"id": 1, "name": "Low Tempo Songs", "start": "6:00am", "end": "6:59am"}, | |
{"id": 2, "name": "Gospel Delight", "start": "7:00am", "end": "9:00am"}, | |
{ | |
"id": 3, | |
"name": "Inspirational Sunday", | |
"start": "10:00am", | |
"end": "12:00 pm" | |
}, | |
{"id": 4, "name": "E-Traffic", "start": "02:00 pm", "end": "04:00 pm"}, | |
{ | |
"id": 5, | |
"name": "The Entrepreneur (Every Fortnight}", | |
"start": "4:00pm", | |
"end": "5.00pm" | |
}, | |
{ | |
"id": 6, | |
"name": "Game Bug Show (Every Fortnight)", | |
"start": "6:00pm", | |
"end": "7:59pm" | |
}, | |
{ | |
"id": 7, | |
"name": "VC Must Hear This (Scheduled) ", | |
"start": "7:00pm", | |
"end": "8:00pm" | |
}, | |
{"id": 8, "name": "Sharing Thoughts", "start": "7:00pm", "end": "10:00pm"}, | |
{"id": 9, "name": "News @ 8", "start": "8:00pm", "end": "8:15pm"}, | |
{ | |
"id": 10, | |
"name": "Sharing Thoughts - Contd.", | |
"start": "8:20pm", | |
"end": "10:00pm" | |
}, | |
{"id": 11, "name": "Late Night Music", "start": "10:00pm", "end": "12:00am"}, | |
]; |
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 OnAir extends StatefulWidget { | |
@override | |
_OnAirState createState() => _OnAirState(); | |
} | |
class _OnAirState extends State<OnAir> { | |
double sliderAmount = 0; | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
backgroundColor: AppColors.appColorBlack, | |
body: ResponsiveSafeArea(builder: (context, size) { | |
return Stack( | |
children: [ | |
Container( | |
height: DeviceUtils.getScaledHeight(context, scale: 1), | |
width: DeviceUtils.getScaledWidth(context, scale: 1), | |
), | |
Container( | |
height: DeviceUtils.getScaledHeight(context, scale: 0.4), | |
width: DeviceUtils.getScaledWidth(context, scale: 1), | |
child: Column( | |
crossAxisAlignment: CrossAxisAlignment.start, | |
mainAxisSize: MainAxisSize.min, | |
children: [ | |
Padding( | |
padding: const EdgeInsets.only(right: 32), | |
child: Align( | |
alignment: Alignment.topRight, | |
child: Column( | |
mainAxisAlignment: MainAxisAlignment.center, | |
mainAxisSize: MainAxisSize.min, | |
children: [ | |
GestureDetector( | |
onTap: () {}, | |
child: Icon( | |
Icons.live_tv, | |
color: AppColors.appPrimaryColor, | |
), | |
), | |
Text( | |
Strings.stream, | |
style: TextStyle( | |
color: AppColors.appPrimaryColor, | |
fontSize: 12, | |
fontFamily: FontFamily.openSansRegular), | |
), | |
], | |
)), | |
), | |
Center( | |
child: Text( | |
Strings.frequency, | |
style: TextStyle( | |
color: AppColors.appColorWhite, | |
fontFamily: FontFamily.openSansSemiBold, | |
fontSize: 64, | |
), | |
), | |
), | |
Center( | |
child: Text( | |
Strings.name, | |
style: TextStyle( | |
color: AppColors.color10, | |
fontFamily: FontFamily.openSansRegular, | |
fontSize: 16, | |
), | |
), | |
), | |
], | |
), | |
), | |
Positioned( | |
top: 220, | |
child: Container( | |
height: DeviceUtils.getScaledHeight(context, scale: 1), | |
width: DeviceUtils.getScaledWidth(context, scale: 1), | |
decoration: BoxDecoration( | |
color: AppColors.color7, | |
borderRadius: BorderRadius.only( | |
topLeft: Radius.circular(24), | |
topRight: Radius.circular(24))), | |
child: Column( | |
crossAxisAlignment: CrossAxisAlignment.start, | |
mainAxisSize: MainAxisSize.min, | |
children: [ | |
Row( | |
children: [ | |
Container( | |
margin: EdgeInsets.only(left: 23, top: 18), | |
child: Text( | |
Strings.todaysprogramme, | |
style: TextStyle( | |
color: AppColors.appColorWhite, | |
fontSize: 16, | |
fontFamily: FontFamily.openSansSemiBold, | |
), | |
), | |
), | |
// SizedBox( | |
// width: MediaQuery.of(context).size.width *0.3, | |
// ), | |
Spacer(), | |
Container( | |
margin: EdgeInsets.only( | |
top: 18, | |
right: 20, | |
), | |
child: GestureDetector( | |
onTap: () { | |
Navigator.push( | |
context, | |
MaterialPageRoute( | |
builder: (context) => | |
ProgrammeSchedule())); | |
}, | |
child: Text( | |
Strings.viewall, | |
style: TextStyle( | |
color: AppColors.appPrimaryColor, | |
fontSize: 12.5, | |
fontFamily: FontFamily.openSansSemiBold, | |
), | |
), | |
), | |
), | |
], | |
), | |
Center( | |
child: Container( | |
width: 100, | |
decoration: BoxDecoration( | |
color: AppColors.appColorWhite, | |
), | |
), | |
), | |
Expanded( | |
child: ListView.builder( | |
scrollDirection: Axis.vertical, | |
itemCount: 20, | |
itemBuilder: (BuildContext context, int index) { | |
return GestureDetector( | |
onTap: () { | |
Navigator.push( | |
context, | |
MaterialPageRoute( | |
builder: (context) => | |
ProgrammeItem())); | |
}, | |
child: Container( | |
margin: EdgeInsets.only(left: 33, right: 31, top: 20), | |
child: Row( | |
children: [ | |
Center( | |
child: Text( | |
'7:00am', | |
style: TextStyle( | |
color: AppColors.color10, | |
fontFamily: FontFamily.openSansSemiBold, | |
fontSize: 10), | |
), | |
), | |
SizedBox( | |
width: DeviceUtils.getScaledWidth(context, scale: 0.06), | |
), | |
Column( | |
crossAxisAlignment: CrossAxisAlignment.start, | |
mainAxisSize: MainAxisSize.min, | |
children: [ | |
Text( | |
'Wake Up Morning Show', | |
style: TextStyle( | |
color: AppColors.appColorWhite, | |
fontFamily: FontFamily.openSansSemiBold, | |
fontSize: 14), | |
), | |
Text( | |
'Margaret Otaru, Mozes Dickson', | |
style: TextStyle( | |
color: AppColors.color10, | |
fontFamily: FontFamily.openSansSemiBold, | |
fontSize: 10), | |
) | |
], | |
), | |
Spacer(), | |
Center( | |
child: Text( | |
'Now Playing', | |
style: TextStyle( | |
color: AppColors.color12, | |
fontFamily: FontFamily.openSansSemiBold, | |
fontSize: 10), | |
), | |
), | |
], | |
), | |
), | |
); | |
}), | |
) | |
], | |
), | |
), | |
), | |
], | |
); | |
})); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment