Dagger
Search

flutter

This module provides a set of functions to buikd and test Flutter applications

Installation

dagger install github.com/fluent-ci-templates/flutter-pipeline@d90aae96f513313f17e6e52b112ee1134b8eee57

Entrypoint

Return Type
Flutter
Example
dagger -m github.com/fluent-ci-templates/flutter-pipeline@d90aae96f513313f17e6e52b112ee1134b8eee57 call \
func (m *myModule) example() *Flutter  {
	return dag.
			Flutter()
}
@function
def example() -> dag.Flutter:
	return (
		dag.flutter()
	)
@func()
example(): Flutter {
	return dag
		.flutter()
}

Types

Flutter 🔗

codeQuality() 🔗

Run code quality checks

Return Type
File !
Arguments
NameTypeDefault ValueDescription
srcDirectory -No description provided
flutterVersionString "3.13.1"No description provided
Example
dagger -m github.com/fluent-ci-templates/flutter-pipeline@d90aae96f513313f17e6e52b112ee1134b8eee57 call \
 code-quality
func (m *myModule) example() *File  {
	return dag.
			Flutter().
			CodeQuality()
}
@function
def example() -> dagger.File:
	return (
		dag.flutter()
		.code_quality()
	)
@func()
example(): File {
	return dag
		.flutter()
		.codeQuality()
}

test() 🔗

Run tests

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
srcDirectory -No description provided
flutterVersionString "3.13.1"No description provided
Example
dagger -m github.com/fluent-ci-templates/flutter-pipeline@d90aae96f513313f17e6e52b112ee1134b8eee57 call \
 test
func (m *myModule) example() *Directory  {
	return dag.
			Flutter().
			Test()
}
@function
def example() -> dagger.Directory:
	return (
		dag.flutter()
		.test()
	)
@func()
example(): Directory {
	return dag
		.flutter()
		.test()
}

build() 🔗

Build the application

Return Type
File !
Arguments
NameTypeDefault ValueDescription
srcDirectory -No description provided
buildTypeString -No description provided
releaseBoolean trueNo description provided
flutterVersionString "3.13.1"No description provided
Example
dagger -m github.com/fluent-ci-templates/flutter-pipeline@d90aae96f513313f17e6e52b112ee1134b8eee57 call \
 build
func (m *myModule) example() *File  {
	return dag.
			Flutter().
			Build()
}
@function
def example() -> dagger.File:
	return (
		dag.flutter()
		.build()
	)
@func()
example(): File {
	return dag
		.flutter()
		.build()
}

dev() 🔗

Return a Container with Flutter installed

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
srcDirectory -No description provided
flutterVersionString "3.13.1"No description provided
Example
dagger -m github.com/fluent-ci-templates/flutter-pipeline@d90aae96f513313f17e6e52b112ee1134b8eee57 call \
 dev
func (m *myModule) example() *Container  {
	return dag.
			Flutter().
			Dev()
}
@function
def example() -> dagger.Container:
	return (
		dag.flutter()
		.dev()
	)
@func()
example(): Container {
	return dag
		.flutter()
		.dev()
}