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
| Future<void> logOut() async { | |
| return showDialog<void>( | |
| context: context, | |
| barrierDismissible: false, // user must tap button! | |
| builder: (BuildContext context) { | |
| return AlertDialog( | |
| title: Text('Are you sure?'), | |
| content: SingleChildScrollView( | |
| child: ListBody( | |
| children: <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
| SelectableText( | |
| 'You can select me now!', | |
| textAlign: TextAlign.center, | |
| style: TextStyle(fontWeight: FontWeight.bold), | |
| ) |
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
| const SelectableText.rich( | |
| TextSpan( | |
| text: 'Hi There - mobilelabs', // default text style | |
| children: <TextSpan>[ | |
| TextSpan(text: ' Wonderful ', style: TextStyle(fontStyle: FontStyle.italic)), | |
| TextSpan(text: 'Life', style: TextStyle(fontWeight: FontWeight.bold)), | |
| ], | |
| ), | |
| ) |
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
| SelectableText( | |
| 'Hello! How are you?', | |
| textAlign: TextAlign.center, | |
| style: TextStyle(fontWeight: FontWeight.bold), | |
| showCursor: true | |
| ) |
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
| SelectableText( | |
| 'You can only copy me!', | |
| textAlign: TextAlign.center, | |
| style: TextStyle(fontWeight: FontWeight.bold), | |
| toolbarOptions(copy: true), | |
| ) |
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
| provider "aws" { | |
| profile = "default" | |
| region = "ap-south-1" | |
| } | |
| resource "aws_instance" "mobilelabs" { | |
| ami = "ami-040c7ad0a93be494e" | |
| instance_type = "t2.micro" | |
| } |
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
| terraform { | |
| backend "s3" { | |
| region = "ap-south-1" | |
| bucket = "mobilelabs.in" | |
| key = "mobilelabs.in/development/state.tfstate" | |
| encrypt = true #AES-256 encryption | |
| } | |
| } |