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
| @font-face { | |
| font-family: 'JetBrains Mono'; | |
| src: url('https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff2/JetBrainsMono-Bold-Italic.woff2') format('woff2'), | |
| url('https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff/JetBrainsMono-Bold-Italic.woff') format('woff'); | |
| font-weight: 700; | |
| font-style: italic; | |
| font-display: swap; | |
| } | |
| @font-face { |
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:arbify_hello_world/l10n/l10n.dart'; | |
| import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp( | |
| MaterialApp( | |
| supportedLocales: S.delegate.supportedLocales, | |
| localizationsDelegates: [ | |
| S.delegate, | |
| ], |
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/foundation.dart'; | |
| class ProxyValueListenable<T> implements ValueListenable<T> { | |
| ProxyValueListenable(this._parent) { | |
| _parent.addListener(_listener); | |
| } | |
| final _listeners = <VoidCallback>[]; | |
| ValueListenable<T> _parent; |
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/foundation.dart'; | |
| class NeverChangingValueListenable<T> implements ValueListenable<T> { | |
| const NeverChangingValueListenable(this.value); | |
| @override | |
| final T value; | |
| @override | |
| void addListener(VoidCallback listener) {} |
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:async/async.dart'; | |
| import 'package:rxdart/rxdart.dart'; | |
| class MapValueStream<T, U> extends DelegatingStream<U> | |
| implements ValueStream<U> { | |
| MapValueStream(this._source, this._mapper) : super(_source.map(_mapper)); | |
| final ValueStream<T> _source; | |
| final U Function(T) _mapper; |
OlderNewer