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
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
@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(
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@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",
@lesliearkorful
lesliearkorful / google-logo-flutter.dart
Last active April 6, 2024 20:39
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) {