Skip to content

Instantly share code, notes, and snippets.

View tarek360's full-sized avatar
💭
I'm Fluttering!

Ahmed Tarek tarek360

💭
I'm Fluttering!
View GitHub Profile
@tarek360
tarek360 / arb_manager.dart
Created October 22, 2024 10:02
arb_manager is a desktop application that allows users to view their ARB files in a table view and highlights missing values.
import 'dart:convert';
import 'dart:io';
import 'package:file_picker/file_picker.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
const defaultLocale = 'en';
void main() {
@tarek360
tarek360 / relative_position_overlay.dart
Created March 15, 2023 17:09
RelativePositionOverlay to show a context popup in a position relative to the another widget position
class RelativePositionOverlay extends StatefulWidget {
const RelativePositionOverlay({
super.key,
required this.popupBuilder,
required this.child,
this.popupOffset = Offset.zero,
});
final WidgetBuilder popupBuilder;
final Widget child;
@tarek360
tarek360 / display_image.dart
Created July 16, 2020 09:14
Display image
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
var title = 'Web Images';
return MaterialApp(
@tarek360
tarek360 / profile_header.dart
Created February 7, 2020 08:18
profile_header - user, profile, avatar, circle, circular, curved, header
import 'package:flutter/material.dart';
import 'dart:math' as math;
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Custom Widget Catalog',
@tarek360
tarek360 / social_rounded_buttons_with_text.dart
Last active February 7, 2020 08:46
Social rounded buttons with text - github, facebook, twitter, google
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Custom Widget Catalog',
home: Scaffold(
@tarek360
tarek360 / social_circular_buttons.dart
Last active February 7, 2020 08:47
Social Circular Buttons - github, facebook, twitter, google
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Custom Widget Catalog',
home: Scaffold(
@tarek360
tarek360 / otp_widget.dart
Created February 7, 2020 08:00
OTP, pin code, keypad
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Custom Widget Catalog',
home: Scaffold(
import 'dart:ui';
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@tarek360
tarek360 / custom_decoration.dart
Last active January 18, 2020 11:16
CustomDecoration
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Center(