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
<!-- android\app\src\main\res\drawable\launch_background.xml --> | |
<?xml version="1.0" encoding="utf-8"?> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item android:drawable="@android:color/white" /> | |
<item> | |
<bitmap | |
android:gravity="center" | |
android:src="@mipmap/ic_launcher" /> | |
</item> | |
</layer-list> |
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
//android\app\src\main\java\com\example\native_splash\CustomSplashScreen.java | |
//package name will differ based on projects | |
package com.example.native_splash; | |
import android.content.Context; | |
import android.os.Bundle; | |
import android.view.View; | |
import androidx.annotation.NonNull; | |
import androidx.annotation.Nullable; | |
import io.flutter.embedding.android.SplashScreen; |
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
//android\app\src\main\java\com\example\native_splash\CustomSplashScreenView.java | |
package com.example.native_splash; | |
import android.animation.Animator; | |
import android.animation.AnimatorListenerAdapter; | |
import android.annotation.SuppressLint; | |
import android.content.Context; | |
import android.graphics.Color; | |
import android.os.Bundle; | |
import android.view.Gravity; |
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
//android\app\src\main\java\com\example\native_splash\MainActivity.java | |
package com.example.native_splash; | |
import android.content.Context; | |
import android.util.Log; | |
import androidx.annotation.Nullable; | |
import io.flutter.embedding.android.FlutterActivity; | |
import io.flutter.embedding.android.SplashScreen; | |
import io.flutter.embedding.engine.FlutterEngine; | |
import io.flutter.embedding.engine.dart.DartExecutor; |
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
const vscode = require('vscode'); | |
/** | |
* @param {vscode.ExtensionContext} context | |
*/ | |
//In case we need to create a terminal | |
let newTerminalId = 1; | |
//This function runs when the extension gets activated |
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
{ | |
"name": "flutter-commands", | |
"displayName": "Flutter Commands", | |
"description": "An Extension to run commonly used flutter commands", | |
"publisher": "PratheeshRussell", | |
"license": "MIT", | |
"version": "0.0.1", | |
"engines": { | |
"vscode": "^1.43.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
var vscode = require( 'vscode' ); | |
//Tree display classes | |
class TreeCmd extends vscode.TreeItem { | |
constructor(type,label,collapsibleState,command) | |
{ | |
super(label, collapsibleState); | |
this.type = type; | |
this.command = command; | |
} | |
} |
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
const vscode = require('vscode'); | |
var tree = require( './treeView.js' ); | |
/** | |
* @param {vscode.ExtensionContext} context | |
*/ | |
//In case we need to create a terminal | |
let newTerminalId = 1; |
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
{ | |
"name": "flutter-commands", | |
"displayName": "Flutter Commands", | |
"description": "An extension to simplify flutter commands", | |
"publisher": "PratheeshRussell", | |
"icon": "resources/icon.png", | |
"license": "MIT", | |
"version": "0.0.1", | |
"repository": { | |
"type": "git", |
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 'package:flutter/material.dart'; | |
import 'package:flutter_test/flutter_test.dart'; | |
// import our app | |
import 'package:test_app1/main.dart'; | |
void main() { | |
testWidgets('testing my app', (WidgetTester tester) async { | |
String name = "Pikachu"; //Define the name to be passed | |
int noOfItemsTobeAdded = 3; | |
//Start our app |
OlderNewer