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
// CHECKSTYLE:OFF | |
package com.andela.mrm.room_availability; | |
import android.content.Context; | |
import android.content.SharedPreferences; | |
import android.media.AudioManager; | |
import android.media.ToneGenerator; | |
import android.os.Bundle; | |
import android.os.Handler; |
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
package com.andela.mrm.room_availability.room_availability_utils; | |
import android.content.Context; | |
import android.content.SharedPreferences; | |
import android.os.Process; | |
import android.support.constraint.ConstraintLayout; | |
import android.view.View; | |
import com.andela.mrm.room_events.CalendarEvent; | |
import com.andela.mrm.room_setup.country.CountryActivity; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<ContentView xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
xmlns:controls="clr-namespace:Naxam.Controls.Mapbox.Forms;assembly=Naxam.Mapbox.Forms" | |
xmlns:forms="clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms" | |
xmlns:controls1="clr-namespace:DLToolkit.Forms.Controls;assembly=DLToolkit.Forms.Controls.FlowListView" | |
x:Class="Via.Views.Location"> | |
<ContentView.Content> | |
<AbsoluteLayout> |
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 reduxThunk from 'redux-thunk'; | |
import * as moxios from 'moxios'; | |
import configurestore from 'redux-mock-store'; | |
import {APIKey, LANGUAGE,URL} from "../../utils/ApiKey"; | |
import {fetchMovies} from "../../actions/searchActions"; | |
import {FETCH_MOVIES} from "../../actions/types"; | |
const middlewares = [reduxThunk]; | |
const mockStore = configurestore(middlewares); | |
describe('search action', () => { |
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
yarn test --coverage --watchAll=false |
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
Widget _detailsList(Article article, ScrollController scrollController) { | |
return Container( | |
child: ListView( | |
shrinkWrap: true, | |
physics: ScrollPhysics(), | |
padding: EdgeInsets.only(top: 00.0), | |
children: <Widget>[ | |
Container( | |
margin: EdgeInsets.only( | |
top: 30.0, left: 20.0, right: 20.0, bottom: 20.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
<template> | |
<v-col class="pa-lg-10"> | |
<v-card class=" mx-auto"> | |
<form class="pa-10"> | |
<p class="reg-text">Java MeetUp Registration</p> | |
<v-text-field v-model="name" label="Name" required></v-text-field> | |
<v-text-field v-model="email" label="E-mail" required></v-text-field> | |
<v-text-field v-model="address" label="Address" required></v-text-field> | |
<v-text-field v-model="phoneNumber" label="Phone Number"></v-text-field> |
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
class Home extends StatefulWidget { | |
@override | |
_Home createState() => _Home(); | |
} | |
class _Home extends State<Home> { | |
Color primary = const Color(0xFF292B2C); | |
List<Widget> pageList = List<Widget>(); | |
int _selectedPage = 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
class ProfilePreferencesBloc { | |
final _user = BehaviorSubject<AuthResponse>(); | |
static const String USER = "USER"; | |
//Getters | |
Stream<AuthResponse> get user => _user.stream; | |
//Setters | |
Function(AuthResponse) get changeUserProfileDetails => _user.sink.add; |
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 'dart:convert'; | |
import 'package:flutter/material.dart'; | |
import 'package:newvisionapp/src/models/authentication/google_auth_response.dart'; | |
import 'package:newvisionapp/src/resources/local_providers/profile_preference_provider.dart'; | |
import 'package:newvisionapp/src/resources/repository/profile/change_name_repository.dart'; | |
import 'package:newvisionapp/src/ui/profile/edit_profile.dart'; | |
import 'package:progress_indicators/progress_indicators.dart'; | |
import 'package:provider/provider.dart'; | |
import 'package:shared_preferences/shared_preferences.dart'; |
OlderNewer