This file contains hidden or 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
showDialog( | |
context: context, | |
builder: (BuildContext context) { | |
return AlertDialog( | |
title: Text("Title", textAlign: TextAlign.center), | |
content: TextField( | |
decoration: InputDecoration(hintText: "Jhon Doe", labelText: 'Enter your username'), | |
), | |
actions: <Widget>[ | |
FlatButton( |
This file contains hidden or 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
showCupertinoDialog( | |
context: context, | |
builder: (BuildContext context) { | |
return CupertinoAlertDialog( | |
title: Text('Title'), | |
content: Text('Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean in congue nisi. Morbi tincidunt est id nibh dapibus, non pulvinar sem sollicitudin. Duis libero quam, posuere non justo non, facilisis sodales elit. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Aliquam sit amet dolor ut sem lobortis commodo id et nunc.'), | |
actions: <Widget>[ | |
CupertinoDialogAction( | |
child: Text('Long Text Button'), | |
onPressed: () { |
This file contains hidden or 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
showDialog( | |
context: context, | |
builder: (BuildContext context) { | |
return AlertDialog( | |
shape: RoundedRectangleBorder( | |
borderRadius: BorderRadius.circular(25.0), | |
), | |
title: Text("Title", textAlign: TextAlign.center), | |
content: Text("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean in congue nisi. Morbi tincidunt est id nibh dapibus, non pulvinar sem sollicitudin. Duis libero quam, posuere non justo non, facilisis sodales elit. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Aliquam sit amet dolor ut sem lobortis commodo id et nunc.", textAlign: TextAlign.center), | |
actions: <Widget>[ |
This file contains hidden or 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
#!/bin/bash | |
#Set the name of the ram disk | |
RAMDISK = "xcodeDeriveData" | |
#Set the size of the ram disk, here is 2048 MB | |
SIZE = 2048 | |
#space allocated to the xcodeDeriveData | |
diskutil erasevolume HFS + $RAMDISK `hdiutil attach -nomount ram://$[SIZE * 2048]` |
This file contains hidden or 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'; | |
Map<String, dynamic> parseJwtPayLoad(String token) { | |
final parts = token.split('.'); | |
if (parts.length != 3) { | |
throw Exception('invalid token'); | |
} | |
final payload = _decodeBase64(parts[1]); | |
final payloadMap = json.decode(payload); |
This file contains hidden or 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/widgets.dart"; | |
import "dart:math"; | |
class SnappingListView extends StatefulWidget { | |
final Axis scrollDirection; | |
final ScrollController controller; | |
final IndexedWidgetBuilder itemBuilder; | |
final List<Widget> children; | |
final int itemCount; |
This file contains hidden or 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
"Content" = "If this goal is achieved the era of renaissance, freedom, the value of the individual that western civilization brought us will be gone overnight. "; | |
"Quotes" = "Quotes"; | |
"Author_Name %@" = "Author Name: %@"; |
This file contains hidden or 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
"Content" = "Если эта цель будет достигнута в эпоху Возрождения, свободы, ценность личности, которую принесла нам западная цивилизация, исчезнет в одночасье."; | |
"Quotes" = "Котировки"; | |
"Author_Name %@" = "Имя автора: %@"; |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>%llu Like(s)</key> | |
<dict> | |
<key>NSStringLocalizedFormatKey</key> | |
<string>%#@v1_likes@</string> | |
<key>v1_likes</key> | |
<dict> |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>%llu Like(s)</key> | |
<dict> | |
<key>NSStringLocalizedFormatKey</key> | |
<string>%#@v1_likes@</string> | |
<key>v1_likes</key> | |
<dict> |