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:intl/intl.dart'; | |
class MyHomePage extends StatefulWidget { | |
const MyHomePage({Key? key, required this.title}) : super(key: key); | |
final String title; | |
@override | |
State<MyHomePage> createState() => _MyHomePageState(); | |
} | |
class _MyHomePageState extends State<MyHomePage> { |
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
plugins { | |
id 'com.android.library' | |
id 'maven-publish' | |
} | |
def artifactId = "artifactId" | |
def groupId = "com.example.groupId" | |
android { | |
namespace 'com.my.library' | |
compileSdk 31 |
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 { | |
publishing { | |
singleVariant('release') { | |
withSourcesJar() // you can remove this | |
withJavadocJar() // you can remove this | |
} | |
} | |
} |
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
plugins { | |
id 'com.android.library' | |
id 'maven-publish' | |
} | |
def artifactId = "artifactId" | |
def groupId = "com.example.groupId" | |
android { | |
namespace 'com.my.library' | |
compileSdk 31 |
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
afterEvaluate { | |
publishing { | |
publications { | |
// Creates a Maven publication called "release". | |
release(MavenPublication) { | |
from components.release | |
setGroupId groupId | |
setArtifactId artifactId | |
version android.defaultConfig.versionName | |
} |
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 { | |
// ADD follwing block | |
lintOptions { | |
disable 'InvalidPackage' | |
disable "Instantiatable" | |
checkReleaseBuilds false | |
abortOnError false | |
} | |
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
Set<Marker> markerLocations = <Marker>{ | |
const Marker( | |
markerId: MarkerId('location1'), | |
position: LatLng(37.483210, -122.145176), | |
), | |
const Marker( | |
markerId: MarkerId('location2'), | |
position: LatLng(37.482144, -122.144668), | |
) | |
}; |
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 'dart:math'; | |
import 'package:flutter/material.dart'; | |
class GenerateList extends StatefulWidget { | |
const GenerateList({super.key}); | |
@override | |
State<GenerateList> createState() => _GenerateListState(); | |
} |