Skip to content

Instantly share code, notes, and snippets.

View romanejaquez's full-sized avatar
💭
I may be slow to respond.

Roman Jaquez romanejaquez

💭
I may be slow to respond.
View GitHub Profile
import 'dart:math';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MultiProvider(
providers: [ChangeNotifierProvider(create: (_) => UserPiecesSelection())],
child: MainApp()));
@romanejaquez
romanejaquez / gist:d8dd3b36d39efce7f1c53a6db4969844
Last active June 26, 2024 22:43
gemini_pictionary_fullcode.dart
// dependencies
import 'dart:convert';
import 'package:finger_painter/finger_painter.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_animate/flutter_animate.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:google_generative_ai/google_generative_ai.dart';
import 'dart:ui' as ui;
import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:google_generative_ai/google_generative_ai.dart';
void main() {
runApp(const ProviderScope(child: GeminiTempApp()));
}
import 'package:flutter/material.dart';
void main() {
runApp(const PageViewApp());
}
class PageViewApp extends StatelessWidget {
const PageViewApp({super.key});
@override
// deploy this as a first-generation Cloud Function with Python 3.10 as its runtime
// and with an HTTP Trigger; this function will use the list of profile URLS from CloudSkillsBoost
// and scrape the necessary information
// add a "main.py" with the code below
// plus a requirements.txt with the following imports:
// ---
// beautifulsoup4
// requests
import 'package:flutter/material.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
import 'package:flutter/material.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
void main() {
runApp(
Provider(
create: (context) => AppValueNotifier(),
child: MyApp()
)
import 'package:flutter/material.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
import 'package:flutter/material.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override