@@ -59,9 +59,10 @@ class _ProfileModalBodyState extends State<ProfileModalBody> {
5959 Widget build (BuildContext context) {
6060 return Navigator (
6161 key: ProfileModalBody .shellNavigatorKey,
62- onPopPage : (route, result) => false ,
62+ onDidRemovePage : (_) {} ,
6363 pages: [
6464 MaterialPage (
65+ canPop: false ,
6566 child: ProfileSelect (
6667 pushRegister: pushRegister,
6768 showLogoutDialog: widget.showLogoutDialog,
@@ -206,11 +207,8 @@ class _ProfileSelectState extends State<ProfileSelect> {
206207 SliverReorderableList (
207208 onReorderStart: (index) => setState (() => accountBeingReorderedIndex = index),
208209 onReorderEnd: (index) => setState (() => accountBeingReorderedIndex = null ),
209- onReorder : (int oldIndex, int newIndex) {
210+ onReorderItem : (int oldIndex, int newIndex) {
210211 setState (() {
211- if (oldIndex < newIndex) {
212- newIndex -= 1 ;
213- }
214212 final AccountExtended item = accounts! .removeAt (oldIndex);
215213 accounts! .insert (newIndex, item);
216214 });
@@ -452,11 +450,8 @@ class _ProfileSelectState extends State<ProfileSelect> {
452450 SliverReorderableList (
453451 onReorderStart: (index) => setState (() => anonymousInstanceBeingReorderedIndex = index),
454452 onReorderEnd: (index) => setState (() => anonymousInstanceBeingReorderedIndex = null ),
455- onReorder : (int oldIndex, int newIndex) {
453+ onReorderItem : (int oldIndex, int newIndex) {
456454 setState (() {
457- if (oldIndex < newIndex) {
458- newIndex -= 1 ;
459- }
460455 final AnonymousInstanceExtended item = anonymousInstances! .removeAt (oldIndex);
461456 anonymousInstances! .insert (newIndex, item);
462457 });
0 commit comments