Skip to content

Instantly share code, notes, and snippets.

View anvuive456's full-sized avatar

anvuive456

  • 10:11 (UTC +07:00)
View GitHub Profile
void main() {
var parsedText = input;
for (var i = 0; i < _vietnamese.length; ++i) {
parsedText = parsedText.replaceAll(_vietnameseRegex[i], _vietnamese[i]);
}
print(parsedText);
}
import 'package:http/http.dart' as http;
Future<String> getIdToken({bool? force}) async {
// fetch update token
return "abc*******";
}
Future<void> main() async {
final client = http.Client();
String token = await getIdToken();
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
class CountController extends StateNotifier<AsyncValue<int>> {
CountController() : super(const AsyncData<int>(0));
Future<void> up() async {