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
// TODO: | |
// Notify about focus | |
@Composable | |
fun CodeInput( | |
requiredLength: Int, | |
code: String, | |
onSymbolSelected: (String) -> Unit, | |
onDelete: () -> Unit, | |
) { | |
// BaseInputConnection |
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
package com.advant.flodplain.approval.data | |
import androidx.lifecycle.LiveData | |
import arrow.core.Either | |
import arrow.core.flatMap | |
import arrow.core.left | |
import com.advant.flodplain.approval.data.local.ApprovalLocalDataSource | |
import com.advant.flodplain.approval.data.local.replaceWith | |
import com.advant.flodplain.approval.data.model.ApprovalRequest | |
import com.advant.flodplain.approval.data.model.ApprovalRequestId |
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:convert'; | |
import 'package:dio/dio.dart'; | |
import 'package:flutter/foundation.dart'; | |
import 'package:json_annotation/json_annotation.dart'; | |
import 'package:mymilkman/crashlytics.dart'; | |
int maybeResponseCode(dynamic error, {bool gatherValidation = true}) { | |
if (error is DioError && error.type == DioErrorType.RESPONSE) { | |
return error.response.statusCode; |
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:convert'; | |
import 'package:dio/dio.dart'; | |
import 'package:flutter/foundation.dart'; | |
import 'package:mymilkman/general/utils/dio_utils.dart'; | |
import 'package:mymilkman/repository/local/token_store.dart'; | |
import 'package:pretty_dio_logger/pretty_dio_logger.dart'; | |
const BaseUrl = 'https://staging.api.mymilkman.ie/Api/'; |
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_keyboard_visibility/flutter_keyboard_visibility.dart'; | |
typedef KeyboardVisibilityWidgetBuilder = Widget Function( | |
BuildContext context, | |
bool keyboardVisibile, | |
); | |
class KeyboardVisibilityBuilder extends StatelessWidget { | |
final KeyboardVisibilityWidgetBuilder builder; |
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:firebase_crashlytics/firebase_crashlytics.dart'; | |
import 'package:flutter/foundation.dart'; | |
import 'package:flutter/gestures.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/services.dart'; | |
import 'package:flutter_bloc/flutter_bloc.dart'; | |
import 'package:mobile/analytics.dart'; | |
import 'package:mobile/auth/password/reset_password_screen.dart'; | |
import 'package:mobile/dimens.dart'; | |
import 'package:mobile/general/extensions/scaffold_extension.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/foundation.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:the_house/presentation/app_icons.dart'; | |
import 'package:the_house/presentation/core/colors.dart'; | |
import 'package:the_house/presentation/core/constants/dimension.dart'; | |
import 'package:the_house/presentation/core/theme/theme.dart'; | |
import 'package:the_house/presentation/widgets/card_pattern.dart'; | |
part 'dimensions.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:firebase_crashlytics/firebase_crashlytics.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:the_house/infrastructure/core/exceptions/no_type_exception.dart'; | |
import 'package:the_house/infrastructure/home_feed/model/chart_data/chart_data.dart'; | |
import 'package:the_house/infrastructure/home_feed/model/content_data/content_data.dart'; | |
import 'package:the_house/infrastructure/home_feed/model/data_data/data_data.dart'; | |
import 'package:the_house/infrastructure/home_feed/model/feedback_data/feedback_data.dart'; | |
import 'package:the_house/infrastructure/home_feed/model/hero_data/hero_data.dart'; | |
import 'package:the_house/presentation/widgets/create_widgets_from_data/widgets/create_chart_widget.dart'; | |
import 'package:the_house/presentation/widgets/create_widgets_from_data/widgets/create_content_widget.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
FlatButton( | |
onPressed: onSignUp, | |
child: Text('SIGN UP'), | |
color: AppColors.grey, | |
shape: RoundedRectangleBorder( | |
borderRadius: BorderRadius.only( | |
topLeft: Radius.zero, | |
bottomLeft: Radius.zero, | |
topRight: Radius.circular(4), | |
bottomRight: Radius.circular(4), |
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
class SubscriptionSeparator extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) => Container( | |
margin: EdgeInsets.only(left: SUBSCRIPTION_TILE_HORIZONTAL_SPACING), | |
height: SUBSCRIPTION_SEPARATOR_HEIGHT, | |
decoration: BoxDecoration( | |
border: Border.all( | |
color: AppColors.dividerGrey.withOpacity(0.08), | |
width: SUBSCRIPTION_SEPARATOR_BORDER_WIDTH, | |
), |
NewerOlder