Skip Navigation
Posts
1
Comments
2
Joined
2 yr. ago
  • It turns out, the culprit was (surpisingly!) Impeller.

    Turning it off on Android completely solved the problem.

  • Surprised to see Canonical of all companies prioritizing Windows over Linux and macOS here.

    That said, it's a good development nonetheless, and I expect Linux and macOS support to come shortly.

  • Flutter @programming.dev
    Enjoying FOSS @programming.dev

    go_router custom transition performance

    I'm trying to implement the OpenContainer transition for go_router in Flutter. It seems like no matter what I do, the end result is choppy. :/

    I'm using the native Transition widgets as well as the relatively new SnapshotWidget, but to no avail. Should I maybe use a custom painter? Would that improve performance?

    Please take a look at the code below and let me know if you see any ways that I could improve performance.


    Here's my attempt at an OpenContainer transition for go_router:

     undefined
        
    import 'package:flutter/material.dart';
    import 'package:your_project_name_xxx/ui_models/container_transition_extra.dart';
    
    class ContainerTransition extends StatefulWidget {
      final ContainerTransitionExtra extra;
      final Animation<double> animation;
      final Widget? sourceWidget;
      final Widget targetWidget;
    
      const ContainerTransition({
        super.key,
        required this.extra,
        required this.animation,
        required this.sourceWidget,
        required this.targetWidget,
      });
    
      @override
      State<C