Skip to content

Instantly share code, notes, and snippets.

View abdulazizahwan's full-sized avatar
👩‍💻
Flutter Enthusiast

Abdul Aziz Ahwan abdulazizahwan

👩‍💻
Flutter Enthusiast
View GitHub Profile
@abdulazizahwan
abdulazizahwan / S18.dart
Last active November 30, 2019 17:17
Main.dart file of Flutter Tutorial - 18 Understanding Row and Column Widget
import 'package:flutter/material.dart';
var assetImage =AssetImage('assets/dribbble_16.png');
var image = Image(
image: assetImage, fit: BoxFit.cover,
);
void main(){
runApp(MaterialApp(
debugShowCheckedModeBanner: false,
@abdulazizahwan
abdulazizahwan / S17.dart
Created November 30, 2019 17:25
Main.dart file of Flutter Tutorial - 17 Image Widget | Importing Image from an Assets
import 'package:flutter/material.dart';
var assetImage =AssetImage('assets/dribbble_16.png');
var image = Image(
image: assetImage, fit: BoxFit.cover,
);
void main(){
runApp(MaterialApp(
debugShowCheckedModeBanner: false,
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical">
<ImageView
android:id="@+id/img_intro"
android:layout_width="match_parent"
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_horizontal"
tools:context=".IntroActivity">
<androidx.viewpager.widget.ViewPager
private void courseData() {
courses = new ArrayList<>();
courses.add(new Course("Android Basic", "Android Development, Building\nLayouts, Android Studio, Views", R.drawable.ic_android, "#40D7CB"));
courses.add(new Course("UI UX Fundamental", "User Research, User Experience,\nPrototyping, Interactive Design", R.drawable.ic_uiux_fundamental, "#FC46A5"));
courses.add(new Course("Full Stack Web Developer", "Python, JavaScript, PostgreSQL,\nFlask, Docker, Kubernetes", R.drawable.ic_fullstack_web, "#F14C50"));
courses.add(new Course("Android Intermediate", "Data Binding, API & REst API,\nDatabases, Firebase and more", R.drawable.ic_android, "#1E59F6"));
courses.add(new Course("Data Visualization", "Combine data, visuals, and narrative to tell\nimpactful stories and make data-driven decisions", R.drawable.ic_data_science, "#6A2C91"));
courses.add(new Course("Cloud Developer", "Cloud development is the foundation for\nthe new world of software development", R.dr
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
defaultConfig {
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<ImageView
android:id="@+id/img1"
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools">
<TextView
android:id="@+id/tvPosition"
android:layout_width="wrap_content"
package com.example.bottomnavigationbar
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentPagerAdapter
import kotlinx.android.synthetic.main.fragment_child.view.*
package com.example.bottomnavigationbar
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import androidx.core.content.ContextCompat
import com.fxn.ariana.ArianaBackgroundListener
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {