import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:loris/business_logic/settings.dart'; const String name = "loris"; const String version = "v0.2 'the themes update'"; const String useragent = "$name/$version"; const String website = "https://git.kittycat.homes/zoe/loris"; final Map defaultHeaders = { if (!kIsWeb) "User-Agent": useragent, "accept": "application/json", "Content-Type": "application/json" }; const List bad = [ "gab.com", "spinster.xyz", "truthsocial.com", "poa.st", "gleasonator.com", "shitposter.club", "freespeechextremist.com" ]; double getWidth(context) { return (MediaQuery.of(context).size.width * settings!.postWidth) - 56; } BoxConstraints getConstraints(context) { return BoxConstraints( maxWidth: settings!.maxPostWidth, minWidth: 375, ); } const List availableLocales = [Locale("en", "US"), Locale("de")]; Settings? settings; const String legalese = "loris is licensed under the CNPLv7+ to find out more go to https://thufie.lain.haus/NPL.html";