Skip to content

Instantly share code, notes, and snippets.

View mohn93's full-sized avatar

Mohaned Benmesken mohn93

  • Libyan Spider
  • Libya
View GitHub Profile
@mohn93
mohn93 / Lecture3lab1.dart
Created February 7, 2024 17:03
Lecture 3 lab 1
import 'package:flutter/material.dart';
void main() {
runApp(const App());
}
class App extends StatelessWidget {
const App({super.key});
@override
@mohn93
mohn93 / lecture3lab2.dart
Created February 7, 2024 16:57
Lecture 3 lab 2
import 'package:flutter/material.dart';
void main() {
runApp(const App());
}
class App extends StatelessWidget {
const App({super.key});
@override
@mohn93
mohn93 / Lecture3Lab.dart
Created January 8, 2024 19:00
Lecture 3 Lab
import 'package:flutter/material.dart';
void main() {
runApp(
MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text('Hello World'),
),
body: Column(
@mohn93
mohn93 / main.dart
Last active December 31, 2023 13:03
1.1 Hello World
// Copyright 2015 the Dart project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file.
void main() {
for (var i = 0; i < 4; i++) {
print('hello $i');
}
}

This is fork from UIBarButtonItem+Badge.swift ##Features

  • Added support for RTL, i mean positioning the badge in the opposite side based on view direction
  • Added support to change the text color
  • Make the badge width expandable based on the label content
  • Solved the problem of the View property can't be found on ios 10 and replace the implementation idea with UIButtonView
  • Since i use cutomview property to implement the solution the view will be replaced with the customview, so i let the customview take the image of the original UIBarButtonItem