https://flutter.dev/docs/development/tools/sdk/releases?tab=macos #change with your os version
flutter version $version
#example : flutter version 1.21.0-1.0.pre
| /* Code comment style */ | |
| .mtk3 { | |
| font-family: 'MonoLisaAlt Nerd Font', monospace !important; | |
| color: #f5c2e7 !important; | |
| font-weight: 300 !important; | |
| } | |
| .line-numbers { | |
| position: relative !important; | |
| width: 35px !important; |
| import 'package:flutter/material.dart'; | |
| const Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| @override |
| const wishlist = [ | |
| { name: "Mini Puzzle", size: "small", clatters: "yes", weight: "light" }, | |
| { name: "Toy Car", size: "medium", clatters: "a bit", weight: "medium" }, | |
| { name: "Card Game", size: "small", clatters: "no", weight: "light" } | |
| ]; | |
| const presents = [ | |
| { size: "medium", clatters: "a bit", weight: "medium" }, | |
| { size: "small", clatters: "yes", weight: "light" }, | |
| ]; |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/scheduler.dart'; | |
| typedef void OnWidgetSizeChange(Size size); | |
| class MeasureSize extends StatefulWidget { | |
| final Widget child; | |
| final OnWidgetSizeChange onChange; | |
| const MeasureSize({ |
https://flutter.dev/docs/development/tools/sdk/releases?tab=macos #change with your os version
flutter version $version
#example : flutter version 1.21.0-1.0.pre
https://flutter.dev/docs/development/tools/sdk/releases?tab=macos #change withyour os version
flutter version $version
| [ | |
| [ | |
| "app", | |
| "F1", | |
| "F2", | |
| "F3", | |
| "F4", | |
| "F5", | |
| "F6", | |
| "F7", |
| [ | |
| [ | |
| "Esc", | |
| "!\n1", | |
| "@\n2", | |
| "#\n3", | |
| "$\n4", | |
| "%\n5", | |
| "^\n6", | |
| "&\n7", |
| startActivity(Intent(applicationContext, NextActivity::class.java).apply { | |
| flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK or Intent.FLAG_ACTIVITY_CLEAR_TOP | |
| }) |
| //date format for timestampz | |
| val formatInput = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'" | |
| val formatOutput = "dd MMMM yyyy HH:mm:ss" | |
| val sdfInput = SimpleDateFormat(formatInput, Locale("id", "ID")) | |
| val sdfOutput = SimpleDateFormat(formatOutput, Locale("id", "ID")) | |
| val date = sdfInput.parse(dataHome.apraisTime) | |
| val newOutput = sdfOutput.format(date) |