This file contains 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 CssParser { | |
const CssParser(); | |
/// | |
static Color getColorFromHashCode(String colorCode) { | |
String color = colorCode.replaceAll("#", "0xff").toLowerCase(); | |
return Color(int.parse(color)); | |
} |
This file contains 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 TimelineWidget extends StatelessWidget { | |
final List<MilestoneWidget> children; | |
const TimelineWidget({ | |
Key? key, | |
required this.children, | |
}) : super(key: key); | |
@override |
This file contains 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
{ | |
"short_name": "svelte-pwa", | |
"name": "svelte-test-pwa", | |
"start_url": "/", | |
"icons": [ | |
{ | |
"src": "logo_512.png", | |
"type": "image/png", | |
"sizes": "512x512" | |
} |
This file contains 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
/// <reference lib="webworker" /> | |
import { build, files, timestamp } from '$service-worker'; | |
const worker = (self as unknown) as ServiceWorkerGlobalScope; | |
const FILES = `cache${timestamp}`; | |
// `build` is an array of all the files generated by the bundler, | |
// `files` is an array of everything in the `static` directory | |
const to_cache = build.concat(files); |