Skip to content

Instantly share code, notes, and snippets.

View lesliearkorful's full-sized avatar
🏠
Working from home

Leslie Arkorful lesliearkorful

🏠
Working from home
View GitHub Profile
@lesliearkorful
lesliearkorful / google-logo-flutter.dart
Last active September 23, 2024 01:40
Google's "G" logo purely drawn in Flutter
// written by @lesliearkorful
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
@lesliearkorful
lesliearkorful / custom-vscode-github-theme
Last active May 5, 2021 12:10
A color customization snippet for Github Light and Dark Themes in VS Code
"editor.semanticTokenColorCustomizations": {
"enabled": true
},
"workbench.colorCustomizations": {
"[GitHub Dark]": {
"statusBar.debuggingBackground": "#af5c19",
"statusBar.background": "#1767c3",
"statusBar.foreground": "#ffffff",
"statusBar.noFolderBorder": "#000000",
"editor.background": "#1f262b",
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@lesliearkorful
lesliearkorful / tweet_thumbnail_with_media.dart
Last active October 4, 2020 19:39
Tweet thumbnail with media
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
class StarRating extends StatelessWidget {
final int stars;
final Color color;
final double iconSize;
const StarRating({Key key, this.stars = 0, this.color, this.iconSize})
: assert(stars >= 0 && stars <= 5),
super(key: key);
@override
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
class Login extends StatefulWidget {
@override
_LoginState createState() => _LoginState();
}
class _LoginState extends State<Login> {
InputDecoration inputDecoration({Icon icon, Icon sicon, String hintText}) {
return InputDecoration(
prefixIcon: icon,
@lesliearkorful
lesliearkorful / mapstyle.json
Last active February 23, 2020 18:51
Google Maps Style (Uber-inspired)
[
{
"elementType": "geometry",
"stylers": [
{
"color": "#e7e9ec"
},
{
"visibility": "on"
}