46 lines
1.5 KiB
Dart
46 lines
1.5 KiB
Dart
//ignore_for_file: constant_identifier_names
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
const String breakfast = "Breakfast";
|
|
const String lunch = "Lunch";
|
|
const String snak = "Snacks";
|
|
const String dinner = "Dinner";
|
|
const String VEG = "VEG";
|
|
const String NONVEG = "NON";
|
|
const String EGG = "EGG";
|
|
const String EMPTY = "Mt";
|
|
const String storageKey = "FullMenu";
|
|
const Center noMenuWidget = Center(
|
|
child: Text("Menu not available for this session",
|
|
style: TextStyle(fontSize: 20, fontStyle: FontStyle.italic)));
|
|
|
|
const String hashLink =
|
|
"https://raw.githubusercontent.com/kphanipavan/IIITB_Menu/menu_scraper/out.txt";
|
|
|
|
const String dataLink =
|
|
"https://raw.githubusercontent.com/kphanipavan/IIITB_Menu/menu_scraper/out.json";
|
|
|
|
enum DataStatus { Loaded, Loading, NotFound }
|
|
|
|
Widget newNoMenuWidget = Center(
|
|
child: Column(mainAxisAlignment: MainAxisAlignment.center, children: [
|
|
const Text("Menu not available for this session",
|
|
style: TextStyle(fontSize: 20, fontStyle: FontStyle.italic)),
|
|
RichText(
|
|
text: const TextSpan(
|
|
children: [
|
|
TextSpan(text: "Click "),
|
|
WidgetSpan(child: Icon(Icons.update_rounded)),
|
|
TextSpan(text: " to check for updates.")
|
|
],
|
|
style: TextStyle(fontSize: 20, fontStyle: FontStyle.italic),
|
|
),
|
|
),
|
|
]),
|
|
);
|
|
|
|
Uri ghURI = Uri.parse("https://github.com/kphanipavan/IIITB_Menu");
|
|
Uri excelSheetURI = Uri.parse(
|
|
"https://iiitbac-my.sharepoint.com/:x:/g/personal/foodcommittee_iiitb_ac_in/ESrcRZMPYFpOgk2VEPd0zd8BDfsMkTUXWM4hRi-2QNF44g?e=fjFkFy");
|