Skip to content

Instantly share code, notes, and snippets.

View JoDeveloper's full-sized avatar
💙
Fluttering

Yousuf Omer JoDeveloper

💙
Fluttering
View GitHub Profile
@JoDeveloper
JoDeveloper / countries.php
Created April 1, 2019 07:49 — forked from JeffreyWay/countries.php
Country Names + Codes
[
"United States" => "us",
"Afghanistan" => "af",
"Albania" => "al",
"Algeria" => "dz",
"American Samoa" => "as",
"Andorra" => "ad",
"Angola" => "ad",
"Anguilla" => "ai",
"Antarctica" => "aq",
{
"additional_path_items":
[
"/usr/local/php5/bin/"
],
"auto_complete_selector": "source, text",
"bold_folder_labels": true,
"color_scheme": "Packages/Colorsublime-Themes/Facebook.tmTheme",
"font_face": "Fira Code",
"font_options": [],
@JoDeveloper
JoDeveloper / modal.blade.php
Last active July 16, 2019 07:57 — forked from laracasts/modal.blade.php
Modals with Zero JavaScript
<div id="{{ $name }}" class="overlay">
<a href="#" class="cancel"></a>
<div class="modal">
{{ $slot }}
<a href="#" class="close">&times;</a>
</div>
</div>
@JoDeveloper
JoDeveloper / Alert.vue
Created August 18, 2019 12:04 — forked from laracasts/Alert.vue
Alert .vue example.
<template>
<div class="Alert Alert--{{ type | capitalize }}">
<slot></slot>
</div>
</template>
<script>
export default {
props: {
type: {
@JoDeveloper
JoDeveloper / Flash.php
Created August 18, 2019 12:07 — forked from willishq/Flash.php
Laravel 5 Flash messages inspired by Laracasts Flash, optimized for Zurb Foundation
<?php namespace App\Services;
use Illuminate\Session\Store;
/**
* Laravel 5 Flash messages inspired by Laracasts Flash Messages.
*
* @link https://github.com/laracasts/flash
*
* @author Andrew Willis <andrew@willishq.co.uk>
*
<?xml version="1.0" encoding="utf-8"?>
<!-- The android:opacity=”opaque” line — this is critical in preventing a flash of black as your theme transitions. -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" android:opacity="opaque">
<!-- The background color, preferably the same as your normal theme -->
<item android:drawable="@android:color/white"/>
<!-- Your product logo - 144dp color version of your app icon -->
<item>
@JoDeveloper
JoDeveloper / Accordion.vue
Created October 29, 2019 14:59 — forked from laracasts/Accordion.vue
vuecasts.com - episode 41 source code.
<template>
<div>
<accordion-item
v-for="(item, index) in items"
:title="item[titleName]"
:body="item[bodyName]"
:key="index"
:is-open="activeItemIndex == index"
@toggled="onToggle"
></accordion-item>
@JoDeveloper
JoDeveloper / php-event-listener-example.php
Created November 10, 2019 19:58 — forked from im4aLL/php-event-listener-example.php
PHP event listener simple example
<?php
class Event {
private static $events = [];
public static function listen($name, $callback) {
self::$events[$name][] = $callback;
}
public static function trigger($name, $argument = null) {
foreach (self::$events[$name] as $event => $callback) {
import 'package:example/widget/list_item.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_i18n/flutter_i18n.dart';
import 'package:url_launcher/url_launcher.dart';
/// 个人中心页面
class UserProfilePage extends StatefulWidget {
@override
_UserProfilePageState createState() => _UserProfilePageState();
import 'package:flutter/material.dart';
/// 列表项
class ListItem extends StatefulWidget {
// 点击事件
final VoidCallback onPressed;
// 图标
final Widget icon;
// 标题
final String title;