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' as math; | |
import 'package:flutter/material.dart'; | |
class CustomOutlineInputBorder extends InputBorder { | |
/// Creates an underline border for an [InputDecorator]. | |
/// | |
/// The [borderSide] parameter defaults to [BorderSide.none] (it must not be | |
/// null). Applications typically do not specify a [borderSide] parameter | |
/// because the input decorator substitutes its own, using [copyWith], based |
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:hive_flutter/adapters.dart'; | |
mixin CachedState<State, CachedType> { | |
///Function for serializing data from [State] to a more useable [CachedType] | |
///that can be stored easily by [Hive] | |
CachedType toCacheData(); | |
///Function for serializing data from [CachedType] to a more useable [State] |