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(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'KDE Flutter Demo', | |
debugShowCheckedModeBanner: false, |
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(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( |
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:provider/provider.dart'; | |
void main() { | |
runApp(App()); | |
} | |
class App extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { |
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
Building without sound null safety | |
For more information see https://dart.dev/null-safety/unsound-null-safety | |
Building Windows application... | |
PS C:\Users\Merritt\Dev\myapp> flutter run -v -d windows | |
[ +76 ms] executing: [C:\tools\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H | |
[ +54 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H | |
[ ] f8cd24de95b16b5a1ce6ebc0716154271fbf6252 | |
[ ] executing: [C:\tools\flutter/] git tag --points-at f8cd24de95b16b5a1ce6ebc0716154271fbf6252 |
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
#!/bin/sh | |
# Launch Steam with steam-native & workaround for power suppression bug | |
# https://github.com/ValveSoftware/steam-for-linux/issues/5607 | |
xdg-dbus-proxy "$DBUS_SESSION_BUS_ADDRESS" "$XDG_RUNTIME_DIR/steam-bus-proxy" --filter --call="org.freedesktop.DBus.*=*" --call="org.freedesktop.IBus.*=*" --call="org.freedesktop.portal.*=*" --call="com.feralinteractive.GameMode.*=*" --call="com.canonical.*=*" --broadcast="*=*" --call="org.kde.*=*" --call="org.gtk.*=*" steam-native |
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
#effects is a colon seperated list of effect to use | |
#e.g.: effects = fxaa:cas | |
#effects will be run in order from left to right | |
#one effect can be run multiple times e.g. smaa:smaa:cas | |
#cas - Contrast Adaptive Sharpening | |
#fxaa - Fast Approximate Anti-Aliasing | |
#smaa - Enhanced Subpixel Morphological Antialiasing | |
#deband - Effects against banding artefacts | |
#lut - color LookUp Table | |
effects = colourfulness |
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
// Rock, Paper, Scissors - Challenge | |
let userChoice = 'Rock'; | |
function computerChoice() { | |
let number = Math.round((Math.random() * 3) + 1); | |
if (number < 1) { | |
computerChoice(); |