View auth-layout.css
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
.login-main{ | |
@apply min-h-screen bg-gray-100 py-6 flex flex-col justify-center sm:py-12 | |
} | |
.login-bg { | |
@apply relative py-3 sm:max-w-xl sm:mx-auto; | |
} |
View modal.css
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
.modal-background { | |
@apply fixed flex justify-center items-center inset-0 bg-black bg-opacity-50 overflow-y-auto h-full w-full transition-all; | |
} | |
.modal-content { | |
@apply border shadow-lg rounded-md bg-white; | |
} |
View get_turns.dart
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
double prevValue = 0.0; | |
double turns = 0; | |
double getTurns() { | |
double? direction = widget.heading; | |
direction = (direction < 0) ? (360 + direction): direction; | |
double diff = direction - prevValue; |
View todos_screen.dart
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:flutter_riverpod/flutter_riverpod.dart'; | |
class TodosScreen extends ConsumerWidget { | |
const TodosScreen({super.key}); | |
@override | |
Widget build(BuildContext context, WidgetRef ref) { | |
return Scaffold( |
View auth-layout.component.html
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
<div class="limiter"> | |
<div class="container-login100" style="background-image: url('../../../../assets/images/bg-01.jpg');"> | |
<div class="wrap-login100 p-l-55 p-r-55 p-t-65 p-b-54"> | |
<router-outlet /> | |
</div> | |
</div> | |
</div> |
View hex-color.js
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
const color = '#xxxxxx'.replace(/x/g, y=>(Math.random()*16|0).toString(16)); |
View interfaces.ts
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
interface House { | |
title: string; | |
description: string; | |
lngLat: [number, number]; | |
} | |
const houses: House[] = [ | |
{ | |
title: 'Casa residencial, Canadá', |
View custom_product_field.dart
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'; | |
class CustomProductField extends StatelessWidget { | |
final bool isTopField; // La idea es que tenga bordes redondeados arriba | |
final bool isBottomField; // La idea es que tenga bordes redondeados abajo | |
final String? label; | |
final String? hint; | |
final String? errorMessage; |
View email.dart
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:formz/formz.dart'; | |
// Define input validation errors | |
enum EmailError { empty, format } | |
// Extend FormzInput and provide the input type and error type. | |
class Email extends FormzInput<String, EmailError> { | |
static final RegExp emailRegExp = RegExp( | |
r'^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$', |
NewerOlder