Skip to content

Instantly share code, notes, and snippets.

View nicowernli's full-sized avatar
🏠
Working from home

Nicolás Wernli nicowernli

🏠
Working from home
  • Málaga, Spain
  • 19:44 (UTC +01:00)
  • LinkedIn in/nwernli
View GitHub Profile
import { Component, signal } from '@angular/core';
import { bootstrapApplication } from '@angular/platform-browser';
import 'zone.js';
import { ModalComponent } from './app/modal/modal.component';
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
@Component({
selector: 'app-root',
standalone: true,
imports: [ModalComponent],
@nicowernli
nicowernli / app.config.ts
Created July 18, 2024 13:09
Summary on adding animations module to angular config
// other imports...
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
export const appConfig: ApplicationConfig = {
providers: [
// all your providers...
provideAnimationsAsync(),
],
};
@nicowernli
nicowernli / AndroidManifest.xml
Created December 17, 2019 14:05
AndroidManifest label strings
...
<application
android:name="io.flutter.app.FlutterApplication"
android:label="@string/app_name"
...
@nicowernli
nicowernli / strings.xml
Created December 17, 2019 14:03
Integration Strings
<!-- android/app/src/integration/res/values/strings.xml -->
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">My App - INT</string>
</resources>
@nicowernli
nicowernli / strings.xml
Created December 17, 2019 14:02
Development Strings
<!-- android/app/src/development/res/values/strings.xml -->
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">My App - DEV</string>
</resources>
@nicowernli
nicowernli / build.gradle
Last active December 17, 2019 13:57
App Gradle android flavors
...
android {
...
flavorDimensions 'my-app'
productFlavors {
development {
dimension 'my-app'
applicationId 'com.my-app.development'
}
@nicowernli
nicowernli / stateful_widget.dart
Created December 12, 2019 14:25
Stateful Widget File Template
#set ( $CAMEL_NAME = ${StringUtils.removeAndHump(${NAME})} )
import 'package:flutter/material.dart';
class ${CAMEL_NAME} extends StatefulWidget {
@override
_${CAMEL_NAME}State createState() => _${CAMEL_NAME}State();
}
class _${CAMEL_NAME}State extends State<${CAMEL_NAME}> {
@override
@nicowernli
nicowernli / stateless_widget.dart
Created December 12, 2019 14:22
Stateless Widget File Template
import 'package:flutter/material.dart';
class ${StringUtils.removeAndHump(${NAME})} extends StatelessWidget {
@override
Widget build(BuildContext context) {
return null;
}
}
@nicowernli
nicowernli / main_integration.dart
Last active December 11, 2019 13:07
main_integration muestra la configuración para integration
import 'package:flutter/material.dart';
import 'app_config.dart';
import 'my_app.dart';
void main() {
runApp(AppConfig(
apiBaseUrl: 'https://integration-api-base-url.com',
flavorName: 'int',
child: MyApp(flavor: 'int'),
@nicowernli
nicowernli / main_development.dart
Last active December 11, 2019 13:08
main_development muestra la configuración de dev
import 'package:flutter/material.dart';
import 'app_config.dart';
import 'my_app.dart';
void main() {
runApp(AppConfig(
apiBaseUrl: 'https://development-api-base-url.com/',
flavorName: 'dev',
child: MyApp(flavor: 'dev'),