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:io'; | |
| import 'package:chewie/chewie.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:image_picker/image_picker.dart'; | |
| import 'package:video_player/video_player.dart'; | |
| void main() { | |
| runApp(MyApp()); | |
| } |
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
| void main() { | |
| isProperlyNested(String str) { | |
| var splittedString = str.split(""); | |
| List outputs = []; | |
| for (var i = 0; i < str.length; i++) { | |
| var currentVal = str[i]; | |
| if (currentVal == '{' || currentVal == '(' || currentVal == '[') { | |
| outputs.add(currentVal); |
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:async'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter_inapp_purchase/flutter_inapp_purchase.dart'; | |
| class PremiumScreen extends StatefulWidget { | |
| @override | |
| _PremiumScreenState createState() => _PremiumScreenState(); | |
| } | |
| class _PremiumScreenState extends State<PremiumScreen> { |
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 _getProduct() async { | |
| List<IAPItem> items = | |
| await FlutterInappPurchase.instance.getProducts(_productLists); | |
| for (var item in items) { | |
| print('${item.toString()}'); | |
| this._items.add(item); | |
| } | |
| setState(() { | |
| this._items = items; |
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 _getPurchaseHistory() async { | |
| List<PurchasedItem> items = | |
| await FlutterInappPurchase.instance.getPurchaseHistory(); | |
| for (var item in items) { | |
| print('${item.toString()}'); | |
| this._purchases.add(item); | |
| } | |
| setState(() { |
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> initPlatformState() async { | |
| String platformVersion; | |
| // Platform messages may fail, so we use a try/catch PlatformException. | |
| final user = await FirebaseAuth.instance.currentUser(); | |
| try { | |
| platformVersion = await FlutterInappPurchase.instance.platformVersion; | |
| } on PlatformException { | |
| platformVersion = 'Failed to get platform version.'; |
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
| List<Widget> _button() { | |
| List<Widget> widgets = this | |
| ._items | |
| .map((item) => Container( | |
| margin: EdgeInsets.symmetric(vertical: 10.0), | |
| child: Container( | |
| child: Column( | |
| children: <Widget>[ | |
| Align( | |
| alignment: Alignment.bottomCenter, |
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:cloud_firestore/cloud_firestore.dart'; | |
| import 'package:firebase_auth/firebase_auth.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'dart:async'; | |
| import 'dart:io'; | |
| import 'package:flutter/services.dart'; | |
| import 'package:flutter_inapp_purchase/flutter_inapp_purchase.dart'; | |
| import 'package:flutter_screenutil/screenutil.dart'; | |
| import 'package:ielts/screens/home_screen.dart'; | |
| import 'package:ielts/utils/app_constants.dart'; |
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
| // Error Codes for SignUp | |
| ERROR_OPERATION_NOT_ALLOWED` - Indicates that Anonymous accounts are not enabled. | |
| ERROR_WEAK_PASSWORD - If the password is not strong enough. | |
| ERROR_INVALID_EMAIL` - If the email address is malformed. | |
| ERROR_EMAIL_ALREADY_IN_USE - If the email is already in use by a different account. | |
| ERROR_INVALID_CREDENTIAL` - If the [email] address is malformed. | |
| // sending password reset email | |
| ERROR_INVALID_EMAIL` - If the [email] address is malformed. |
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
| function handleThumbnailClicks() { | |
| $('.thumbnail').click(function(event) { | |
| var imgSrc = $(event.currentTarget).find('img').attr('src'); | |
| $('.hero img').attr('src', imgSrc); | |
| }) | |
| } | |
| $(function() { | |
| handleThumbnailClicks(); | |
| }); |
NewerOlder