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/material.dart'; | |
void main() { | |
runApp(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); | |
@override |
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/material.dart'; | |
const goodRoute = 'good-route'; | |
const brokenRoute = 'broken-route'; | |
const initialRoute = 'initial-route'; | |
void main() => runApp(MyApp()); | |
/// Small app to reproduce an issue with the Navigator 2.0 API: | |
/// - When popping the dialog from Navigator.pop(context), it may get stuck. |
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
// A swap function | |
var swap = function(array,i,j){ | |
var aux = array[i]; | |
array[i] = array[j]; | |
array[j] = aux; | |
}; | |
// Quick sort implementation | |
var quickSort = function(array) { | |
var f = function(from,to){ |