This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
LocalSpend-Tracker/lib/common/functions/logout.dart

7 lines
No EOL
223 B
Dart

import 'package:flutter/material.dart';
import 'package:local_spend/common/apifunctions/request_logout_api.dart';
logout(context) {
requestLogoutAPI(context);
Navigator.of(context).pushReplacementNamed('/LoginPage');
}