Skip to content

Instantly share code, notes, and snippets.

View AliRadwan's full-sized avatar
🎯
Focusing

Ali Radwan AliRadwan

🎯
Focusing
View GitHub Profile
@AliRadwan
AliRadwan / shared preferences
Created October 22, 2020 10:00
this class help to customize you code
import 'package:shared_preferences/shared_preferences.dart';
import 'dart:convert';
//*************** Not working Fine
/// This Class Created by Ali Radwan .
/// it's helping you to save data in local in SharedPreferences.
class SharedPref {
read(String key) async {
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'Widgets/Carousel.dart';
class MyHome extends StatefulWidget {
@override
_MyHomeState createState() => _MyHomeState();
}
@AliRadwan
AliRadwan / CountriesBottomSheet
Created January 5, 2020 21:04
CountriesBottomSheet
void _openCountriesBottomSheet(BuildContext context) {
showCupertinoModalPopup(
context: context,
builder: (BuildContext context) {
return Container(
// height: (MediaQuery.of(context).size.height / 2) + 100,
child: CupertinoActionSheet(
cancelButton: CupertinoButton(
child: Text(
allTranslations.text("cancel"),