Flutter - Error -32601 received from application: Method not found

656

Make sure you add:

import 'package:timeago/timeago.dart' as tm;

Also, add this on your 'void main()', on main.dart:

WidgetsFlutterBinding.ensureInitialized();

Share:
656
Mik
Author by

Mik

Updated on December 16, 2022

Comments

  • Mik
    Mik over 1 year

    My app builds normally on the emulator, but then the screen goes blank and I get this on the terminal:

    "Error -32601 received from the application: Method not found".

    The dependencies are updated.

    Please help!