Skip to content

Instantly share code, notes, and snippets.

View viztushar's full-sized avatar
🎯
Focusing

Tushar viztushar

🎯
Focusing
View GitHub Profile
int? parseIntPrefix(String s) {
var re = RegExp(r'(-?[0-9]+).*');
var match = re.firstMatch(s);
if (match == null) {
return null;
}
return int.parse(match.group(1)!);
}
int compareIntPrefixes(String a, String b) {
android.view.InflateException:
at android.view.LayoutInflater.inflate (LayoutInflater.java:539)
at android.view.LayoutInflater.inflate (LayoutInflater.java:423)
at com.viztushar.bigmoji.i.c (Unknown Source)
at com.viztushar.bigmoji.i.a (Unknown Source)
java.lang.RuntimeException:
at android.os.AsyncTask$3.done (AsyncTask.java:366)
at java.util.concurrent.FutureTask.finishCompletion (FutureTask.java:383)
at java.util.concurrent.FutureTask.setException (FutureTask.java:252)
at java.util.concurrent.FutureTask.run (FutureTask.java:271)
import 'package:flutter/material.dart';
import 'package:UrbanWalls/dataModel/DopeWallsModel.dart';
class ListItem extends StatelessWidget {
final List<DopeWallsModel> walls;
DopeWallsItem({Key key, this.walls}) : super(key: key);
@override
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.viztushar.urbanwalls/com.viztushar.urbanwalls.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.View.getPaddingLeft()' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2659)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2724)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1473)
at android.os.Handler.dispatchMessage(Handler.java:102)
AccountHeader header = new AccountHeaderBuilder().withActivity(this)
.withAccountHeader(R.layout.header).build();
new DrawerBuilder()
.withActivity(this)
.withToolbar(mToolbar)
.withAccountHeader(header)
.addDrawerItems(item,item2,new DividerDrawerItem(),item3,item4,item5,item6,new DividerDrawerItem(),
item7)
.withActionBarDrawerToggle(true)
package com.viztushar.myaccessibility;
import android.accessibilityservice.AccessibilityService;
import android.accessibilityservice.AccessibilityServiceInfo;
import android.os.Bundle;
import android.support.v4.view.accessibility.AccessibilityNodeInfoCompat;
import android.util.Log;
import android.view.accessibility.AccessibilityEvent;
import android.view.accessibility.AccessibilityNodeInfo;