Skip to content

Instantly share code, notes, and snippets.

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
/// A widget that is a hybrid between [TextField] and [Text] widgets.
///
/// Initially, this will be a [Text] widget with the provided [initialText].
///
/// When the user clicks on it, it becomes a [TextField] with a configurable value. And when it loses focus or when `Enter` key is
/// pressed, it returns back to the state of being a [Text] widget.
///
import 'dart:collection';
import 'package:dartz/dartz.dart';
import 'package:photo_editor/services/timeline/timeline.dart';
import 'package:test/test.dart';
void main() {
group('elements', () {
test('Should return the elements in the timeline correctly.', () {
Timeline<int> t1 = Timeline(maxSize: 3);
import 'dart:collection';
import 'package:collection/collection.dart';
import 'package:dartz/dartz.dart';
import 'package:fast_immutable_collections/fast_immutable_collections.dart';
import 'package:injectable/injectable.dart';
/// A timeline of values of a variable of type [T].
///
/// It can be viewed as a list of elements of type [T], with element at index 0 being the oldest.