dpad
is your local dart scripting environment. This is a simple guide to start using dart scripts across your machine.
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:math'; | |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); |
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
const k = { | |
"admin-restricted-operation": "This operation is restricted to administrators only.", | |
"argument-error": "", | |
"app-not-authorized": "This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.", | |
"app-not-installed": "The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device.", | |
"captcha-check-failed": "The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains.", | |
"code-expired": "The SMS code has expired. Please re-send the verification code to try again.", | |
"cordova-not-ready": "Cordova framework is not ready.", | |
"cors-unsupported": "This browser is not supported.", | |
"credential-already-in-use": "This credential is already associated with a different user account.", |
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(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({super.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
import 'dart:math'; | |
import 'package:benchmark_harness/benchmark_harness.dart'; | |
void main(List<String> args) { | |
final random = Random(); | |
ShapeType randomShapeType() => ShapeType.values[random.nextInt(4)]; | |
double randomSize() => random.nextDouble(); |
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
// Adding this line so we can perform the variable assignment: num eachElement = 0; | |
// ignore_for_file: unused_local_variable | |
import 'dart:collection'; | |
import 'dart:math'; | |
void main(List<String> args) { | |
final list = UnmodifiableListView( | |
List<int>.generate(200000000, (index) => index), | |
); |
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(const MaterialApp(home: EyesThatFollow())); | |
class EyesThatFollow extends StatefulWidget { | |
const EyesThatFollow({super.key}); | |
@override | |
State<EyesThatFollow> createState() => _EyesThatFollowState(); | |
} |
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/gestures.dart'; | |
void main() => runApp(const MyApp()); | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); | |
@override | |
Widget build(BuildContext context) { |
-
Run
flutter build ipa --release -t lib/main/production.dart
$ flutter build ipa Archiving com.example.example... Automatically signing iOS for device deployment using specified development team in Xcode project: J........Z Running pod install... Running Xcode build... └─Compiling, linking and signing...
Xcode archive done.
NewerOlder