Skip to content

Instantly share code, notes, and snippets.

View yasinarik's full-sized avatar
🎯
Focusing

Yasin Arık yasinarik

🎯
Focusing
View GitHub Profile
@yasinarik
yasinarik / scroll_to_key.dart
Created January 9, 2022 13:37 — forked from slightfoot/scroll_to_key.dart
Scroll content to widget with key - by Simon Lightfoot - 13/11/2019
// MIT License
//
// Copyright (c) 2021 Simon Lightfoot
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// ATTENTION!
//You have to add these to pubspec.yaml:
//get: ^3.24.0
//provider: ^4.3.2+3
//uuid: ^2.2.2
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:provider/provider.dart';
import 'package:uuid/uuid.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
/* -------------------------------------------------------------------------- */
/* READ HERE FIRST */
/* -------------------------------------------------------------------------- */
/// How can I use different instances of controllers for each new view (or route)?
///
/// I can use:
/// Controller controller = Get.put(Controller(), tag: "uniqueTag");