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:admob_flutter/admob_flutter.dart'; | |
| import 'package:cloud_firestore/cloud_firestore.dart'; | |
| import 'package:firebase_demo/services/admob_service.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'services/admob_service.dart'; | |
| class BandVotesDetails extends StatefulWidget { | |
| @override | |
| _BandVotesDetailsState createState() => _BandVotesDetailsState(); |
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'; | |
| class AdMobService { | |
| String getADMobAppId() { | |
| if (Platform.isAndroid) { | |
| return 'ca-app-pub-5062555353360915~9266088806'; | |
| } else if (Platform.isIOS) { | |
| return 'ca-app-pub-5062555353360915~6448353772'; | |
| } |
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/material.dart'; | |
| import 'package:flutter_bloc/flutter_bloc.dart'; | |
| import 'package:flutter_demo_bloc_example/bloc/user_details/user_details_bloc.dart'; | |
| import 'package:flutter_demo_bloc_example/bloc/user_details/user_details_event.dart'; | |
| import 'package:flutter_demo_bloc_example/bloc/user_details/user_details_state.dart'; | |
| import 'package:flutter_demo_bloc_example/constants/user_constant.dart'; | |
| import 'package:flutter_demo_bloc_example/model/network/user_data.dart'; | |
| class UserPage extends StatefulWidget { | |
| @override |
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/material.dart'; | |
| import 'package:flutter_bloc/flutter_bloc.dart'; | |
| import 'package:flutter_demo_bloc_example/bloc/user_details/user_details_bloc.dart'; | |
| import 'package:flutter_demo_bloc_example/bloc/user_details/user_details_state.dart'; | |
| import 'package:flutter_demo_bloc_example/repositroy/user_repository.dart'; | |
| class UserPage extends StatefulWidget { | |
| @override | |
| _UserPageState createState() => _UserPageState(); | |
| } |
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:flare_flutter/flare_actor.dart'; | |
| import 'package:flutter/material.dart'; | |
| class FlareDemo extends StatefulWidget { | |
| @override | |
| _FlareDemoState createState() => _FlareDemoState(); | |
| } | |
| class _FlareDemoState extends State<FlareDemo> { | |
| bool isOpen = false; |
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_redux_example/model/app_state.dart'; | |
| import 'package:flutter_redux_example/model/cart_item.dart'; | |
| import 'package:flutter_redux_example/redux/actions.dart'; | |
| AppState appStateReducers(AppState state, dynamic action) { | |
| if (action is AddCartItemAction) { | |
| return addCartItem(state.cartItemList, state.mainItemList, action); | |
| } else if (action is RemoveCartItemAction) { | |
| return removeCartItem(state.cartItemList, state.mainItemList, action); | |
| } |
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/material.dart'; | |
| import 'package:flutter_redux/flutter_redux.dart'; | |
| import 'package:flutter_redux_example/cartList.dart'; | |
| import 'package:flutter_redux_example/home_page.dart'; | |
| import 'package:flutter_redux_example/model/app_state.dart'; | |
| import 'package:flutter_redux_example/upload_imageScreen.dart'; | |
| import 'package:graphql_flutter/graphql_flutter.dart'; | |
| import 'package:redux/redux.dart'; | |
| class MyApp extends StatelessWidget { |
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_redux_example/model/cart_item.dart'; | |
| class AppState { | |
| List<CartItem> cartItemList = List<CartItem>(); | |
| List<CartItem> mainItemList = List<CartItem>(); | |
| AppState({this.cartItemList, this.mainItemList}); | |
| AppState.fromAppState(AppState another) { | |
| cartItemList = another.cartItemList; |
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/cupertino.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter_redux/flutter_redux.dart'; | |
| import 'package:flutter_redux_example/model/app_state.dart'; | |
| import 'package:flutter_redux_example/redux/actions.dart'; | |
| import 'model/cart_item.dart'; | |
| class CartList extends StatefulWidget { | |
| @override |
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/cupertino.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter_redux/flutter_redux.dart'; | |
| import 'package:flutter_redux_example/model/app_state.dart'; | |
| import 'package:flutter_redux_example/redux/actions.dart'; | |
| import 'model/cart_item.dart'; | |
| class CartList extends StatefulWidget { | |
| @override |