Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Ravi Yadav raviyadav5951

🏠
Working from home
View GitHub Profile
@raviyadav5951
raviyadav5951 / main.dart
Last active Feb 14, 2019
My First Dart code
View main.dart
class Bicycle {
int cadence;
int _speed = 0;
//we have made speed as read only so we will just use get below to read its value.
//we will update its value using _speed variable.(work as setter)
// and to print the speed value (use _speed which always gets the latest speed value)
int get speed => _speed;
int gear;
View build.gradle
splits {
// Configures multiple APKs based on ABI.
abi {
// Enables building multiple APKs per ABI.
enable true
// By default all ABIs are included, so use reset() and include to specify that we only
// want APKs for armeabi-v7a and arm64-v8a.
// Resets the list of ABIs that Gradle should create APKs for to none.
reset()
@raviyadav5951
raviyadav5951 / pubspec.yaml
Created Dec 25, 2019
Yaml file for multiple apks
View pubspec.yaml
name: app_name
description: A new Flutter application.
version: 1.0.0+1
environment:
sdk: ">=2.0.0-dev.68.0 <3.0.0"
dependencies:
flutter:
@raviyadav5951
raviyadav5951 / build.gradle
Created Dec 27, 2019
MVVM project after creating new project
View build.gradle
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion 29
defaultConfig {
applicationId "com.askfortricks.mvvmnavcontrol"
You can’t perform that action at this time.