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 version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle"> | |
<channel> | |
<item> | |
<enclosure | |
sparkle:os="ios" | |
sparkle:version="2.0.0" | |
url="https://apps.apple.com/tw/app/google/id284815942"/> | |
<!-- Uncomment this line to force update--> | |
<!--<sparkle:tags><sparkle:criticalUpdate/></sparkle:tags>--> |
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 version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle"> | |
<channel> | |
<item> | |
<enclosure | |
sparkle:os="android" | |
sparkle:version="2.0.0" | |
url="https://play.google.com/store/apps/details?id=com.google.android.googlequicksearchbox"/> | |
<!-- Uncomment this line to force update--> | |
<!--<sparkle:tags><sparkle:criticalUpdate/></sparkle:tags>--> |
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
class Node { | |
Node(this.title, [this.children = const []]); | |
final String title; | |
final List<Node> children; | |
} | |
Node copy(Node n) { | |
// create new object with data from old object | |
return Node( |
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'; | |
void main() { | |
runApp( | |
MaterialApp( | |
home: App(), | |
), | |
); | |
} |
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/cupertino.dart'; | |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MaterialApp( | |
home: Scaffold( | |
body: Center( | |
child: Text("Please help me!!!"), | |
), | |
), |
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/cupertino.dart'; | |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(App()); | |
} | |
class App extends StatelessWidget { | |
final doubleListQueue = ["personalName", "carrierType", "email"]; | |
final tripleListQueue = ["companyName", "taxID", "email"]; |
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 'dart:async'; | |
import 'dart:math'; | |
const originalMap = [ | |
[1,1,1,1,1,1,1,1,1,1,1,], | |
[1,0,0,0,0,0,0,0,0,0,1,], | |
[1,0,1,0,1,0,1,0,1,0,1,], | |
[1,0,1,0,1,1,1,0,1,0,1,], | |
[1,0,1,0,0,0,0,0,1,0,1,], |
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_riverpod/all.dart'; | |
final container = ProviderContainer(); // declare global ProviderContainer | |
final countProvider = StateProvider((ref) => 0); // declare providers anywhere | |
void main() { | |
final ProviderSubscription<StateController<int>> subscription = container.listen(countProvider, didChange: (sub) { // listen from container | |
print(sub.read().state); |
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:flutter_riverpod/all.dart'; | |
final countProvider = StateProvider((ref) => 0); // declare providers anywhere | |
final clockProvider = StateProvider((ref) => DateTime.now()); | |
void main() { | |
runApp(ProviderScope(child: MyApp())); // add ProviderScope at top level | |
} |
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/material.dart'; | |
import 'package:provider/provider.dart'; | |
void main() { | |
runApp(MultiProvider( | |
providers: [ | |
ChangeNotifierProvider(create: (_) => Counter()), | |
ChangeNotifierProvider(create: (_) => Clock()) |
NewerOlder