This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
class FantasticButton extends StatelessWidget { | |
final double? width; | |
final double? height; | |
final Widget child; | |
final EdgeInsets padding; | |
final LinearGradient gradient; | |
final bool isFill; | |
final double strokeWidth; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
String quran = """112|1|بِسْمِ ٱللَّهِ ٱلرَّحْمَـٰنِ ٱلرَّحِيمِ قُلْ هُوَ ٱللَّهُ أَحَدٌ | |
112|2|ٱللَّهُ ٱلصَّمَدُ | |
112|3|لَمْ يَلِدْ وَلَمْ يُولَدْ | |
112|4|وَلَمْ يَكُن لَّهُۥ كُفُوًا أَحَدٌۢ | |
113|1|بِسْمِ ٱللَّهِ ٱلرَّحْمَـٰنِ ٱلرَّحِيمِ قُلْ أَعُوذُ بِرَبِّ ٱلْفَلَقِ | |
113|2|مِن شَرِّ مَا خَلَقَ | |
113|3|وَمِن شَرِّ غَاسِقٍ إِذَا وَقَبَ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// use active document | |
var doc = app.activeDocument; | |
// initiate dialog | |
var dialog = new Window("dialog", "Enter details "); | |
dialog.orientaions = "column"; | |
// function to build text box |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// #target illustrator | |
function promptDocQty() { | |
var qty = parseInt(prompt("doc qty:", "1")); | |
if (isNaN(qty) || qty < 1) { | |
parseInt(prompt("invalid input.")); | |
} | |
return qty; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "dart:convert"; | |
import "dart:math"; | |
void main() { | |
GenerateCode generate = GenerateCode(e: "fathi"); | |
print(generate.result()); | |
} | |
class GenerateCode { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract class Brands1 { | |
// abstract class with "required" parameter | |
final String brand; | |
const Brands1({required this.brand}); | |
} | |
class Mobile1 extends Brands1 { | |
// "Mobile1" must have constructor, because |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
//import 'custom_materials/custom_buttom_nav_bar.dart'; | |
//import 'screens/screens_holder.dart'; | |
void main() => runApp(const MyApp()); | |
class MyApp extends StatelessWidget { | |
const MyApp({Key? key}) : super(key: key); | |
@override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() => runApp(const MyApp()); | |
class MyApp extends StatelessWidget { | |
const MyApp({Key? key}) : super(key: key); | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( |