forked from firka/student-legacy
added all new booklet backgrounds
This commit is contained in:
parent
416f42f42d
commit
b0eb819afa
43
refilc/assets/svg/cover_arts/grid.svg
Normal file
43
refilc/assets/svg/cover_arts/grid.svg
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
<svg width="375" height="174" viewBox="0 0 375 174" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<g clip-path="url(#clip0_1575_5258)">
|
||||||
|
<g style="mix-blend-mode:color-burn">
|
||||||
|
<rect x="187.881" y="36.8047" width="50.4482" height="50.4482" stroke="#858585"/>
|
||||||
|
<rect x="238.186" y="36.8047" width="50.4482" height="50.4482" stroke="#858585"/>
|
||||||
|
<rect x="187.881" y="-13.5" width="50.4482" height="50.4482" stroke="#858585"/>
|
||||||
|
<rect x="238.186" y="-13.5" width="50.4482" height="50.4482" stroke="#858585"/>
|
||||||
|
<rect x="288.49" y="36.8047" width="49.3049" height="50.4482" stroke="#858585"/>
|
||||||
|
<rect x="337.652" y="36.8047" width="50.4482" height="50.4482" stroke="#858585"/>
|
||||||
|
<rect x="288.49" y="-13.5" width="49.3049" height="50.4482" stroke="#858585"/>
|
||||||
|
<rect x="337.652" y="-13.5" width="50.4482" height="50.4482" stroke="#858585"/>
|
||||||
|
<rect x="187.881" y="136.271" width="50.4482" height="50.4482" stroke="#858585"/>
|
||||||
|
<rect x="238.186" y="136.271" width="50.4482" height="50.4482" stroke="#858585"/>
|
||||||
|
<rect x="187.881" y="87.1099" width="50.4482" height="49.3049" stroke="#858585"/>
|
||||||
|
<rect x="238.186" y="87.1099" width="50.4482" height="49.3049" stroke="#858585"/>
|
||||||
|
<rect x="288.49" y="136.271" width="49.3049" height="50.4482" stroke="#858585"/>
|
||||||
|
<rect x="337.652" y="136.271" width="50.4482" height="50.4482" stroke="#858585"/>
|
||||||
|
<rect x="288.49" y="87.1099" width="49.3049" height="49.3049" stroke="#858585"/>
|
||||||
|
<rect x="337.652" y="87.1099" width="50.4482" height="49.3049" stroke="#858585"/>
|
||||||
|
<rect x="-12.1953" y="36.8047" width="50.4482" height="50.4482" stroke="#858585"/>
|
||||||
|
<rect x="-12.1953" y="-13.5" width="50.4482" height="50.4482" stroke="#858585"/>
|
||||||
|
<rect x="38.1094" y="36.8047" width="49.3049" height="50.4482" stroke="#858585"/>
|
||||||
|
<rect x="87.2705" y="36.8047" width="50.4482" height="50.4482" stroke="#858585"/>
|
||||||
|
<rect x="38.1094" y="-13.5" width="49.3049" height="50.4482" stroke="#858585"/>
|
||||||
|
<rect x="87.2705" y="-13.5" width="50.4482" height="50.4482" stroke="#858585"/>
|
||||||
|
<rect x="-12.1953" y="136.271" width="50.4482" height="50.4482" stroke="#858585"/>
|
||||||
|
<rect x="-12.1953" y="87.1099" width="50.4482" height="49.3049" stroke="#858585"/>
|
||||||
|
<rect x="38.1094" y="136.271" width="49.3049" height="50.4482" stroke="#858585"/>
|
||||||
|
<rect x="87.2705" y="136.271" width="50.4482" height="50.4482" stroke="#858585"/>
|
||||||
|
<rect x="38.1094" y="87.1099" width="49.3049" height="49.3049" stroke="#858585"/>
|
||||||
|
<rect x="87.2705" y="87.1099" width="50.4482" height="49.3049" stroke="#858585"/>
|
||||||
|
<rect x="137.576" y="36.8047" width="50.4482" height="50.4482" stroke="#858585"/>
|
||||||
|
<rect x="137.576" y="-13.5" width="50.4482" height="50.4482" stroke="#858585"/>
|
||||||
|
<rect x="137.576" y="136.271" width="50.4482" height="50.4482" stroke="#858585"/>
|
||||||
|
<rect x="137.576" y="87.1099" width="50.4482" height="49.3049" stroke="#858585"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<defs>
|
||||||
|
<clipPath id="clip0_1575_5258">
|
||||||
|
<rect width="375" height="173.78" fill="white"/>
|
||||||
|
</clipPath>
|
||||||
|
</defs>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 2.8 KiB |
27
refilc/assets/svg/cover_arts/line.svg
Normal file
27
refilc/assets/svg/cover_arts/line.svg
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
<svg width="375" height="175" viewBox="0 0 375 175" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<g clip-path="url(#clip0_1575_5259)">
|
||||||
|
<g style="mix-blend-mode:color-burn">
|
||||||
|
<mask id="path-1-inside-1_1575_5259" fill="white">
|
||||||
|
<path d="M0 37H375V89H0V37Z"/>
|
||||||
|
</mask>
|
||||||
|
<path d="M0 38H375V36H0V38Z" fill="#858585" mask="url(#path-1-inside-1_1575_5259)"/>
|
||||||
|
<mask id="path-3-inside-2_1575_5259" fill="white">
|
||||||
|
<path d="M0 -13H375V38H0V-13Z"/>
|
||||||
|
</mask>
|
||||||
|
<path d="M0 -12H375V-14H0V-12Z" fill="#858585" mask="url(#path-3-inside-2_1575_5259)"/>
|
||||||
|
<mask id="path-5-inside-3_1575_5259" fill="white">
|
||||||
|
<path d="M0 137H375V188H0V137Z"/>
|
||||||
|
</mask>
|
||||||
|
<path d="M0 138H375V136H0V138Z" fill="#858585" mask="url(#path-5-inside-3_1575_5259)"/>
|
||||||
|
<mask id="path-7-inside-4_1575_5259" fill="white">
|
||||||
|
<path d="M0 87H375V138H0V87Z"/>
|
||||||
|
</mask>
|
||||||
|
<path d="M0 88H375V86H0V88Z" fill="#858585" mask="url(#path-7-inside-4_1575_5259)"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<defs>
|
||||||
|
<clipPath id="clip0_1575_5259">
|
||||||
|
<rect width="375" height="173.78" fill="white" transform="translate(0 0.780518)"/>
|
||||||
|
</clipPath>
|
||||||
|
</defs>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 1.0 KiB |
47
refilc/assets/svg/cover_arts/plain.svg
Normal file
47
refilc/assets/svg/cover_arts/plain.svg
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
<svg width="375" height="175" viewBox="0 0 375 175" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<g clip-path="url(#clip0_1575_5260)">
|
||||||
|
<g style="mix-blend-mode:color-burn">
|
||||||
|
<circle cx="17" cy="19.561" r="1" fill="#858585"/>
|
||||||
|
<circle cx="59" cy="19.561" r="1" fill="#858585"/>
|
||||||
|
<circle cx="101" cy="19.561" r="1" fill="#858585"/>
|
||||||
|
<circle cx="143" cy="19.561" r="1" fill="#858585"/>
|
||||||
|
<circle cx="185" cy="19.561" r="1" fill="#858585"/>
|
||||||
|
<circle cx="227" cy="19.561" r="1" fill="#858585"/>
|
||||||
|
<circle cx="269" cy="19.561" r="1" fill="#858585"/>
|
||||||
|
<circle cx="311" cy="19.561" r="1" fill="#858585"/>
|
||||||
|
<circle cx="353" cy="19.561" r="1" fill="#858585"/>
|
||||||
|
<circle cx="17" cy="61.561" r="1" fill="#858585"/>
|
||||||
|
<circle cx="59" cy="61.561" r="1" fill="#858585"/>
|
||||||
|
<circle cx="101" cy="61.561" r="1" fill="#858585"/>
|
||||||
|
<circle cx="143" cy="61.561" r="1" fill="#858585"/>
|
||||||
|
<circle cx="185" cy="61.561" r="1" fill="#858585"/>
|
||||||
|
<circle cx="227" cy="61.561" r="1" fill="#858585"/>
|
||||||
|
<circle cx="269" cy="61.561" r="1" fill="#858585"/>
|
||||||
|
<circle cx="311" cy="61.561" r="1" fill="#858585"/>
|
||||||
|
<circle cx="353" cy="61.561" r="1" fill="#858585"/>
|
||||||
|
<circle cx="17" cy="103.561" r="1" fill="#858585"/>
|
||||||
|
<circle cx="59" cy="103.561" r="1" fill="#858585"/>
|
||||||
|
<circle cx="101" cy="103.561" r="1" fill="#858585"/>
|
||||||
|
<circle cx="143" cy="103.561" r="1" fill="#858585"/>
|
||||||
|
<circle cx="185" cy="103.561" r="1" fill="#858585"/>
|
||||||
|
<circle cx="227" cy="103.561" r="1" fill="#858585"/>
|
||||||
|
<circle cx="269" cy="103.561" r="1" fill="#858585"/>
|
||||||
|
<circle cx="311" cy="103.561" r="1" fill="#858585"/>
|
||||||
|
<circle cx="353" cy="103.561" r="1" fill="#858585"/>
|
||||||
|
<circle cx="17" cy="145.561" r="1" fill="#858585"/>
|
||||||
|
<circle cx="59" cy="145.561" r="1" fill="#858585"/>
|
||||||
|
<circle cx="101" cy="145.561" r="1" fill="#858585"/>
|
||||||
|
<circle cx="143" cy="145.561" r="1" fill="#858585"/>
|
||||||
|
<circle cx="185" cy="145.561" r="1" fill="#858585"/>
|
||||||
|
<circle cx="227" cy="145.561" r="1" fill="#858585"/>
|
||||||
|
<circle cx="269" cy="145.561" r="1" fill="#858585"/>
|
||||||
|
<circle cx="311" cy="145.561" r="1" fill="#858585"/>
|
||||||
|
<circle cx="353" cy="145.561" r="1" fill="#858585"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<defs>
|
||||||
|
<clipPath id="clip0_1575_5260">
|
||||||
|
<rect width="375" height="173.78" fill="white" transform="translate(0 0.561035)"/>
|
||||||
|
</clipPath>
|
||||||
|
</defs>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 2.2 KiB |
28
refilc/assets/svg/cover_arts/vocal.svg
Normal file
28
refilc/assets/svg/cover_arts/vocal.svg
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
<svg width="375" height="175" viewBox="0 0 375 175" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<g clip-path="url(#clip0_1575_5261)">
|
||||||
|
<g style="mix-blend-mode:color-burn">
|
||||||
|
<path d="M0 63.0001H375" stroke="#858585"/>
|
||||||
|
<path d="M0 75.0001H375" stroke="#858585"/>
|
||||||
|
<path d="M0 87.0001H375" stroke="#858585"/>
|
||||||
|
<path d="M0 99.0001H375" stroke="#858585"/>
|
||||||
|
<path d="M0 111H375" stroke="#858585"/>
|
||||||
|
</g>
|
||||||
|
<g style="mix-blend-mode:color-burn">
|
||||||
|
<path d="M0 135H375" stroke="#858585"/>
|
||||||
|
<path d="M0 147H375" stroke="#858585"/>
|
||||||
|
<path d="M0 159H375" stroke="#858585"/>
|
||||||
|
<path d="M0 171H375" stroke="#858585"/>
|
||||||
|
</g>
|
||||||
|
<g style="mix-blend-mode:color-burn">
|
||||||
|
<path d="M0 3.00012H375" stroke="#858585"/>
|
||||||
|
<path d="M0 15.0001H375" stroke="#858585"/>
|
||||||
|
<path d="M0 27.0001H375" stroke="#858585"/>
|
||||||
|
<path d="M0 39.0001H375" stroke="#858585"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<defs>
|
||||||
|
<clipPath id="clip0_1575_5261">
|
||||||
|
<rect width="375" height="173.78" fill="white" transform="translate(0 0.341431)"/>
|
||||||
|
</clipPath>
|
||||||
|
</defs>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 973 B |
@ -1,43 +0,0 @@
|
|||||||
<svg width="375" height="174" viewBox="0 0 375 174" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<g clip-path="url(#clip0_581_2504)">
|
|
||||||
<g style="mix-blend-mode:color-burn">
|
|
||||||
<rect x="138.881" y="36.8047" width="50.4482" height="50.4482" stroke="black"/>
|
|
||||||
<rect x="189.186" y="36.8047" width="50.4482" height="50.4482" stroke="black"/>
|
|
||||||
<rect x="138.881" y="-13.5" width="50.4482" height="50.4482" stroke="black"/>
|
|
||||||
<rect x="189.186" y="-13.5" width="50.4482" height="50.4482" stroke="black"/>
|
|
||||||
<rect x="239.49" y="36.8047" width="49.3049" height="50.4482" stroke="black"/>
|
|
||||||
<rect x="288.652" y="36.8047" width="50.4482" height="50.4482" stroke="black"/>
|
|
||||||
<rect x="239.49" y="-13.5" width="49.3049" height="50.4482" stroke="black"/>
|
|
||||||
<rect x="288.652" y="-13.5" width="50.4482" height="50.4482" stroke="black"/>
|
|
||||||
<rect x="138.881" y="136.271" width="50.4482" height="50.4482" stroke="black"/>
|
|
||||||
<rect x="189.186" y="136.271" width="50.4482" height="50.4482" stroke="black"/>
|
|
||||||
<rect x="138.881" y="87.1099" width="50.4482" height="49.3049" stroke="black"/>
|
|
||||||
<rect x="189.186" y="87.1099" width="50.4482" height="49.3049" stroke="black"/>
|
|
||||||
<rect x="239.49" y="136.271" width="49.3049" height="50.4482" stroke="black"/>
|
|
||||||
<rect x="288.652" y="136.271" width="50.4482" height="50.4482" stroke="black"/>
|
|
||||||
<rect x="239.49" y="87.1099" width="49.3049" height="49.3049" stroke="black"/>
|
|
||||||
<rect x="288.652" y="87.1099" width="50.4482" height="49.3049" stroke="black"/>
|
|
||||||
<rect x="338.957" y="36.8047" width="50.4482" height="50.4482" stroke="black"/>
|
|
||||||
<rect x="338.957" y="-13.5" width="50.4482" height="50.4482" stroke="black"/>
|
|
||||||
<rect x="338.957" y="136.271" width="50.4482" height="50.4482" stroke="black"/>
|
|
||||||
<rect x="338.957" y="87.1099" width="50.4482" height="49.3049" stroke="black"/>
|
|
||||||
<rect x="-10.8906" y="36.8047" width="49.3049" height="50.4482" stroke="black"/>
|
|
||||||
<rect x="38.2705" y="36.8047" width="50.4482" height="50.4482" stroke="black"/>
|
|
||||||
<rect x="-10.8906" y="-13.5" width="49.3049" height="50.4482" stroke="black"/>
|
|
||||||
<rect x="38.2705" y="-13.5" width="50.4482" height="50.4482" stroke="black"/>
|
|
||||||
<rect x="-10.8906" y="136.271" width="49.3049" height="50.4482" stroke="black"/>
|
|
||||||
<rect x="38.2705" y="136.271" width="50.4482" height="50.4482" stroke="black"/>
|
|
||||||
<rect x="-10.8906" y="87.1099" width="49.3049" height="49.3049" stroke="black"/>
|
|
||||||
<rect x="38.2705" y="87.1099" width="50.4482" height="49.3049" stroke="black"/>
|
|
||||||
<rect x="88.5762" y="36.8047" width="50.4482" height="50.4482" stroke="black"/>
|
|
||||||
<rect x="88.5762" y="-13.5" width="50.4482" height="50.4482" stroke="black"/>
|
|
||||||
<rect x="88.5762" y="136.271" width="50.4482" height="50.4482" stroke="black"/>
|
|
||||||
<rect x="88.5762" y="87.1099" width="50.4482" height="49.3049" stroke="black"/>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
<defs>
|
|
||||||
<clipPath id="clip0_581_2504">
|
|
||||||
<rect width="375" height="173.78" fill="white"/>
|
|
||||||
</clipPath>
|
|
||||||
</defs>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 2.8 KiB |
@ -292,3 +292,105 @@ class ShortSubject {
|
|||||||
return subject?.name.capital() ?? subjectName?.capital() ?? "?";
|
return subject?.name.capital() ?? subjectName?.capital() ?? "?";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// new v5 thingie
|
||||||
|
class SubjectBooklet {
|
||||||
|
// static String resolveName({GradeSubject? subject, String? subjectName}) =>
|
||||||
|
// _resolve(subject: subject, subjectName: subjectName).name;
|
||||||
|
static String resolveVariant(
|
||||||
|
{GradeSubject? subject,
|
||||||
|
String? subjectName,
|
||||||
|
required BuildContext context}) =>
|
||||||
|
_resolve(subject: subject, subjectName: subjectName);
|
||||||
|
|
||||||
|
static String _resolve({GradeSubject? subject, String? subjectName}) {
|
||||||
|
assert(!(subject == null && subjectName == null));
|
||||||
|
|
||||||
|
String name = (subject?.name ?? subjectName ?? "")
|
||||||
|
.toLowerCase()
|
||||||
|
.specialChars()
|
||||||
|
.trim();
|
||||||
|
String category =
|
||||||
|
subject?.category.description.toLowerCase().specialChars() ?? "";
|
||||||
|
|
||||||
|
String basePath = "assets/svg/cover_arts";
|
||||||
|
|
||||||
|
// todo: check for categories
|
||||||
|
if (RegExp("mate(k|matika)").hasMatch(name) || category == "matematika") {
|
||||||
|
return "$basePath/grid.svg";
|
||||||
|
} else if (RegExp("magyar nyelv|nyelvtan").hasMatch(name)) {
|
||||||
|
return "$basePath/line.svg";
|
||||||
|
} else if (RegExp("irodalom").hasMatch(name)) {
|
||||||
|
return "$basePath/line.svg";
|
||||||
|
} else if (RegExp("tor(i|tenelem)").hasMatch(name)) {
|
||||||
|
return "$basePath/line.svg";
|
||||||
|
} else if (RegExp("foldrajz").hasMatch(name)) {
|
||||||
|
return "$basePath/plain.svg";
|
||||||
|
} else if (RegExp("rajz|muvtori|muveszet|vizualis").hasMatch(name)) {
|
||||||
|
return "$basePath/plain.svg";
|
||||||
|
} else if (RegExp("fizika").hasMatch(name)) {
|
||||||
|
return "$basePath/plain.svg";
|
||||||
|
} else if (RegExp("^enek|zene|szolfezs|zongora|korus").hasMatch(name)) {
|
||||||
|
return "$basePath/vocal.svg";
|
||||||
|
} else if (RegExp("^tes(i|tneveles)|sport|edzeselmelet").hasMatch(name)) {
|
||||||
|
return "$basePath/plain.svg";
|
||||||
|
} else if (RegExp("kemia").hasMatch(name)) {
|
||||||
|
return "$basePath/plain.svg";
|
||||||
|
} else if (RegExp("biologia").hasMatch(name)) {
|
||||||
|
return "$basePath/plain.svg";
|
||||||
|
} else if (RegExp(
|
||||||
|
"kornyezet|termeszet ?(tudomany|ismeret)|hon( es nep)?ismeret")
|
||||||
|
.hasMatch(name)) {
|
||||||
|
return "$basePath/plain.svg";
|
||||||
|
} else if (RegExp("(hit|erkolcs)tan|vallas|etika|bibliaismeret")
|
||||||
|
.hasMatch(name)) {
|
||||||
|
return "$basePath/line.svg";
|
||||||
|
} else if (RegExp("penzugy").hasMatch(name)) {
|
||||||
|
return "$basePath/plain.svg";
|
||||||
|
} else if (RegExp("informatika|szoftver|iroda|digitalis").hasMatch(name)) {
|
||||||
|
return "$basePath/grid.svg";
|
||||||
|
} else if (RegExp("prog").hasMatch(name)) {
|
||||||
|
return "$basePath/grid.svg";
|
||||||
|
} else if (RegExp("halozat").hasMatch(name)) {
|
||||||
|
return "$basePath/grid.svg";
|
||||||
|
} else if (RegExp("szinhaz").hasMatch(name)) {
|
||||||
|
return "$basePath/vocal.svg";
|
||||||
|
} else if (RegExp("film|media").hasMatch(name)) {
|
||||||
|
return "$basePath/plain.svg";
|
||||||
|
} else if (RegExp("elektro(tech)?nika").hasMatch(name)) {
|
||||||
|
return "$basePath/grid.svg";
|
||||||
|
} else if (RegExp("gepesz|mernok|ipar").hasMatch(name)) {
|
||||||
|
return "$basePath/grid.svg";
|
||||||
|
} else if (RegExp("technika").hasMatch(name)) {
|
||||||
|
return "$basePath/plain.svg";
|
||||||
|
} else if (RegExp("tanc").hasMatch(name)) {
|
||||||
|
return "$basePath/vocal.svg";
|
||||||
|
} else if (RegExp("filozofia").hasMatch(name)) {
|
||||||
|
return "$basePath/line.svg";
|
||||||
|
} else if (RegExp("osztaly(fonoki|kozosseg)|kozossegi|neveles")
|
||||||
|
.hasMatch(name) ||
|
||||||
|
name == "ofo") {
|
||||||
|
return "$basePath/plain.svg";
|
||||||
|
} else if (RegExp("gazdasag").hasMatch(name)) {
|
||||||
|
return "$basePath/line.svg";
|
||||||
|
} else if (RegExp("szorgalom").hasMatch(name)) {
|
||||||
|
return "$basePath/plain.svg";
|
||||||
|
} else if (RegExp("magatartas").hasMatch(name)) {
|
||||||
|
return "$basePath/plain.svg";
|
||||||
|
} else if (RegExp(
|
||||||
|
"angol|nemet|francia|olasz|orosz|spanyol|latin|kinai|nyelv")
|
||||||
|
.hasMatch(name)) {
|
||||||
|
return "$basePath/line.svg";
|
||||||
|
} else if (RegExp("linux").hasMatch(name)) {
|
||||||
|
return "$basePath/plain.svg";
|
||||||
|
} else if (RegExp("adatbazis").hasMatch(name)) {
|
||||||
|
return "$basePath/grid.svg";
|
||||||
|
} else if (RegExp("asztali alkalmazasok").hasMatch(name)) {
|
||||||
|
return "$basePath/grid.svg";
|
||||||
|
} else if (RegExp("projekt").hasMatch(name)) {
|
||||||
|
return "$basePath/plain.svg";
|
||||||
|
}
|
||||||
|
|
||||||
|
return "$basePath/plain.svg";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -104,6 +104,7 @@ flutter:
|
|||||||
- assets/svg/menu_icons/
|
- assets/svg/menu_icons/
|
||||||
- assets/other/dirtywords.xml
|
- assets/other/dirtywords.xml
|
||||||
- assets/svg/
|
- assets/svg/
|
||||||
|
- assets/svg/cover_arts/
|
||||||
|
|
||||||
fonts:
|
fonts:
|
||||||
- family: FilcIcons
|
- family: FilcIcons
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import 'package:flutter_svg/svg.dart';
|
import 'package:flutter_svg/svg.dart';
|
||||||
|
import 'package:refilc/helpers/subject.dart';
|
||||||
import 'package:refilc/theme/colors/colors.dart';
|
import 'package:refilc/theme/colors/colors.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:refilc/theme/colors/utils.dart';
|
import 'package:refilc/theme/colors/utils.dart';
|
||||||
@ -113,7 +114,9 @@ class HeroScrollViewState extends State<HeroScrollView> {
|
|||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.only(top: 26.0),
|
padding: const EdgeInsets.only(top: 26.0),
|
||||||
child: SvgPicture.asset(
|
child: SvgPicture.asset(
|
||||||
"assets/svg/mesh_bg.svg",
|
// "assets/svg/mesh_bg.svg",
|
||||||
|
SubjectBooklet.resolveVariant(
|
||||||
|
context: context, subjectName: widget.title),
|
||||||
// ignore: deprecated_member_use
|
// ignore: deprecated_member_use
|
||||||
color: ColorsUtils()
|
color: ColorsUtils()
|
||||||
.darken(
|
.darken(
|
||||||
|
@ -99,7 +99,9 @@ class ExamPopup extends StatelessWidget {
|
|||||||
Stack(
|
Stack(
|
||||||
children: [
|
children: [
|
||||||
SvgPicture.asset(
|
SvgPicture.asset(
|
||||||
"assets/svg/mesh_bg.svg",
|
// "assets/svg/mesh_bg.svg",
|
||||||
|
SubjectBooklet.resolveVariant(
|
||||||
|
context: context, subject: exam.subject),
|
||||||
// ignore: deprecated_member_use
|
// ignore: deprecated_member_use
|
||||||
color: ColorsUtils()
|
color: ColorsUtils()
|
||||||
.fade(context, Theme.of(context).colorScheme.secondary,
|
.fade(context, Theme.of(context).colorScheme.secondary,
|
||||||
|
@ -310,7 +310,9 @@ class TimetableLessonPopup extends StatelessWidget {
|
|||||||
Stack(
|
Stack(
|
||||||
children: [
|
children: [
|
||||||
SvgPicture.asset(
|
SvgPicture.asset(
|
||||||
"assets/svg/mesh_bg.svg",
|
// "assets/svg/mesh_bg.svg",
|
||||||
|
SubjectBooklet.resolveVariant(
|
||||||
|
context: context, subject: lesson.subject),
|
||||||
// ignore: deprecated_member_use
|
// ignore: deprecated_member_use
|
||||||
color: ColorsUtils()
|
color: ColorsUtils()
|
||||||
.fade(context, Theme.of(context).colorScheme.secondary,
|
.fade(context, Theme.of(context).colorScheme.secondary,
|
||||||
@ -334,13 +336,13 @@ class TimetableLessonPopup extends StatelessWidget {
|
|||||||
.withOpacity(0.1),
|
.withOpacity(0.1),
|
||||||
Theme.of(context).scaffoldBackgroundColor,
|
Theme.of(context).scaffoldBackgroundColor,
|
||||||
],
|
],
|
||||||
stops: const [0.1, 0.5, 0.7, 1.0],
|
stops: const [0.0, 0.3, 0.6, 0.95],
|
||||||
begin: Alignment.topCenter,
|
begin: Alignment.topCenter,
|
||||||
end: Alignment.bottomCenter,
|
end: Alignment.bottomCenter,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
width: MediaQuery.of(context).size.width,
|
width: MediaQuery.of(context).size.width,
|
||||||
height: 175.0,
|
height: 200.0,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@ -355,16 +357,27 @@ class TimetableLessonPopup extends StatelessWidget {
|
|||||||
width: 40,
|
width: 40,
|
||||||
height: 4,
|
height: 4,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: ColorsUtils()
|
color: Theme.of(context).scaffoldBackgroundColor,
|
||||||
.fade(
|
|
||||||
context, Theme.of(context).colorScheme.secondary,
|
|
||||||
darkenAmount: 0.1, lightenAmount: 0.1)
|
|
||||||
.withOpacity(0.33),
|
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
2.0,
|
2.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
child: Container(
|
||||||
|
width: 40,
|
||||||
|
height: 4,
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
color: ColorsUtils()
|
||||||
|
.fade(context,
|
||||||
|
Theme.of(context).colorScheme.secondary,
|
||||||
|
darkenAmount: 0.1, lightenAmount: 0.1)
|
||||||
|
.withOpacity(0.33),
|
||||||
|
borderRadius: BorderRadius.circular(
|
||||||
|
2.0,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 38.0,
|
height: 38.0,
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user