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 'package:flutter_screenutil/flutter_screenutil.dart'; | |
import 'package:flutter_svg/flutter_svg.dart'; | |
import 'package:rest_water_23/gen/assets.gen.dart'; | |
import 'package:rest_water_23/presentation/core/navigation_services.dart'; | |
enum MessageType { success, fail, warning } |
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
func reverse(x int) int { | |
rev:= 0 | |
for x != 0 { | |
pop := x % 10 | |
x = x / 10 | |
if rev > math.MaxInt32/10 || (rev == math.MaxInt32 /10 && pop > 7) { | |
return 0 | |
} | |
if rev < math.MinInt32/10 || (rev == math.MinInt32/10 && pop < -8) { | |
return 0 |
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
func twoSum(nums []int, target int) []int { | |
result := []int{} | |
for i:= 0; i< len(nums); i++{ | |
if i < len(nums){ | |
for j:= i+1 ; j < len(nums) ; j++{ | |
if j < len(nums){ | |
if nums[i] + nums[j] == target { | |
result = append(result, i,j) | |
} |
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() { | |
List<int> result = twoSum([2, 7, 11, 15],9); | |
print(result); | |
} | |
List<int> twoSum(List<int> nums,int target){ | |
List<int> indices = []; | |
for(int i = 0; i< nums.length; i++){ |
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
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file | |
// for details. All rights reserved. Use of this source code is governed by a | |
// BSD-style license that can be found in the LICENSE file. | |
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@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
void main() { | |
runApp(_SwitchingThemeApp()); | |
} | |
/// Properties that help me keep track of the example being run. | |
bool _useMaterial = false; | |
class _SwitchingThemeApp extends StatefulWidget { | |
@override | |
_SwitchingThemeAppState createState() => _SwitchingThemeAppState(); |
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() { | |
runApp(_SwitchingThemeApp()); | |
} | |
/// Properties that help me keep track of the example being run. | |
bool _useMaterial = false; | |
class _SwitchingThemeApp extends StatefulWidget { | |
@override | |
_SwitchingThemeAppState createState() => _SwitchingThemeAppState(); |
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
{ | |
"message": true, | |
"data": { | |
"info": [ | |
{ | |
"about": "<p dir=\"rtl\"><span style=\"color:#999999\"><strong><span style=\"font-family:Trebuchet MS,Helvetica,sans-serif\"><span style=\"font-size:18px\"> </span><span style=\"font-size:24px\">من نحن</span></span></strong></span></p>\r\n\r\n<p dir=\"rtl\" style=\"text-align:justify\"><span style=\"font-size:14px\"><strong><span style=\"color:#8e44ad\"><span style=\"font-family:Trebuchet MS,Helvetica,sans-serif\">موقع تسوق فاز الإلكتروني تم تأسيس هذا الموقع في عام ٢٠١٩م تحت أيدي خبراء في مجال التقنية وتم تصميمه بدقة احترافية تواكب عصر التطور التكنولوجي في مجال التسوق والتسويق</span></span></strong></span></p>", | |
"conditions": "<p style=\"text-align:right\"> arabicالشروط والاحكام </p>", | |
"logo": "3144.png", | |
"email": "info@tswqfaz.com", | |
"phone": "00966542595948", |
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
// MIT License | |
// | |
// Copyright (c) 2019 Simon Lightfoot | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: |
NewerOlder