Skip to content

Instantly share code, notes, and snippets.

View aagarwal1012's full-sized avatar
💡
Building great things!

Ayush Agarwal aagarwal1012

💡
Building great things!
View GitHub Profile
@aagarwal1012
aagarwal1012 / flutter-ci.yml
Last active March 23, 2024 11:54
CI for your Flutter apps on GitHub Actions.
name: Flutter CI
# This workflow is triggered on pushes to the repository.
on:
push:
branches:
- master
# on: push # Default will running for every branch.
@UiThread
void onUiThread() {}
void unannotatedCallsUiThread() {
onUiThread();
}
@WorkerThread
void testMethodAnnotations(TextView textView) {
textView.setText(""); // correct: displays warning.
package android.view;
import org.checkerframework.checker.androidresource.qual.*;
class View implements Drawable.Callback, KeyEvent.Callback,
AccessibilityEventSource {
@IdRes int getId();
}
package android.view;
import org.checkerframework.checker.androidresource.qual.*;
public interface MenuItem {
@IdRes int getItemId();
}
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="16dp"
android:paddingLeft="16dp"
android:paddingRight="16dp"