Skip to content

Instantly share code, notes, and snippets.

@oravecz
oravecz / main.dart
Last active January 14, 2023 03:13
Bloc w/ Animated Items
import 'package:equatable/equatable.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter/material.dart';
typedef Op = MyStateItem Function(MyStateItem stateItem);
class MyState extends Equatable {
const MyState(this.items);
final List<MyStateItem> items;
@oravecz
oravecz / main.dart
Last active October 13, 2022 19:22
silent-truth-8787
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:math' as math;
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';
import 'package:english_words/english_words.dart';