- Create folder .github/workflows/ on your projects root folder
- Add a file named flutter_build.yml
- Paste the above code into that file.
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
```dart | |
part of 'user.m.dart'; | |
extension UserExt on User? { | |
Future<void> save() async { | |
try { | |
await prefs.setString('user', this!.toRawJson()); | |
} catch (e) { | |
log('Error: $e'); | |
} |
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
int callCount = 0; | |
void main(){ | |
var memFibo = memoize(input); | |
print(callCount); | |
print(memFibo(20, 2)); | |
print(callCount); | |
print(memFibo(25, 5)); | |
print(callCount); | |
print(memFibo(20,2)); |
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
#version 460 core | |
#include <flutter/runtime_effect.glsl> | |
uniform vec2 uSize; | |
uniform vec4 uColor; | |
uniform float uTime; // Add this line | |
out vec4 FragColor; |
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
/// Add dio and dio_pretty_logger into your pubspec.yaml | |
import 'dart:io'; | |
import 'package:dio/dio.dart'; | |
import 'package:pretty_dio_logger/pretty_dio_logger.dart'; | |
import 'package:shared_preferences/shared_preferences.dart'; | |
const String base_url = ""; |