View selectable_sqlite_async.dart
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:sqlite3/sqlite3.dart'; | |
import 'package:sqlite_async/sqlite_async.dart'; | |
typedef RowParser<T> = T Function(Row row); | |
extension SqliteDatabaseUtils on SqliteDatabase { | |
Selectable<T> select<T>( | |
String sql, { | |
List<Object?> parameters = const [], | |
Set<String> tables = const {}, |
View podcast_rss_feed.xml
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
<?xml version="1.0" encoding="UTF-8" ?> | |
<rss xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:rawvoice="http://www.rawvoice.com/rawvoiceRssModule/" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0"> | |
<channel> | |
<title>Creative Engineering</title> | |
<googleplay:author>Rody Davis, Norbert Kozsir</googleplay:author> | |
<rawvoice:rating>TV-G</rawvoice:rating> | |
<rawvoice:location>San Francisco, California</rawvoice:location> | |
<rawvoice:frequency>Weekly</rawvoice:frequency> | |
<author>Rody Davis, Norbert Kozsir</author> | |
<itunes:author>Rody Davis, Norbert Kozsir</itunes:author> |
View signals_fullname_example.dart
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'; | |
import 'package:signals/signals_flutter.dart'; | |
void main() => runApp(const MyApp()); | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); | |
@override | |
Widget build(BuildContext context) => const MaterialApp( |
View signals.dart
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'; | |
final brightness = signal(Brightness.light); | |
void main() => runApp(const MyApp()); | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); | |
@override |
View preact_signals.dart
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
// ignore_for_file: public_member_api_docs, constant_identifier_names | |
const _maxCallDepth = 100; | |
void cycleDetected() { | |
throw Exception('Cycle detected'); | |
} | |
void mutationDetected() { | |
throw Exception('Computed cannot have side-effects'); | |
} |
View flutter_github_ci.yml
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
name: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build_web: |
View flutter_native_http.dart
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:cronet_http/cronet_http.dart'; | |
import 'package:cupertino_http/cupertino_http.dart'; | |
import 'package:device_info_plus/device_info_plus.dart'; | |
import 'package:fetch_client/fetch_client.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:http/http.dart'; | |
import 'package:platform_info/platform_info.dart'; | |
import 'package:flutter/foundation.dart'; | |
void main() async { |
View flutter_stream_widget.dart
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 'dart:async'; | |
import 'package:flutter/widgets.dart'; | |
abstract class StreamWidget extends StatefulWidget { | |
const StreamWidget({Key? key}) : super(key: key); | |
Stream<Widget> build(BuildContext context); | |
void initState() {} |
View input_output_preview.dart
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'; | |
import 'two_pane.dart'; | |
class InputOutputPreview extends StatefulWidget { | |
const InputOutputPreview({ | |
super.key, | |
required this.title, | |
required this.input, | |
required this.output, |
View flutter-multi-touch-canvas-demo.dart
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 'dart:async'; | |
import 'dart:math' as math; | |
import 'package:flutter/gestures.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/services.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { |
NewerOlder