0maru / twitter_login

MIT License
54 stars 54 forks source link

Type 'VoidCallback' not found #123

Closed Oleksandr32 closed 1 year ago

Oleksandr32 commented 1 year ago

Bug report

Describe the bug Hi, there is a bug in the last release of the plugin. Looks like there is no import for 'VoidCallback' in auth_browser.dart file. Could you please check and make a hotfix?

twitter_login-4.4.0/lib/src/auth_browser.dart:20:3: Error: Type 'VoidCallback' not found. VoidCallback onClose;
Screenshot 2023-05-22 at 14 49 32

Flutter doctor

Run flutter doctor and paste the output below:

Click To Expand ``` [✓] Flutter (Channel stable, 3.0.0, on macOS 13.0.1 22A400 darwin-arm, locale en-UA) • Flutter version 3.0.0 • Upstream repository https://github.com/flutter/flutter.git • Framework revision ee4e09cce0 (1 year ago), 2022-05-09 16:45:18 -0700 • Engine revision d1b9a6938a • Dart version 2.17.0 • DevTools version 2.12.2 ```

0maru commented 1 year ago

I could not confirm this error. Are you experiencing the same error now?

jmarrr commented 1 year ago

I am currently experiencing this error Untitled

Oleksandr32 commented 1 year ago

hi @0maru, I have fixed it by adding

import 'package:flutter/material.dart';

to auth_browser.dart file, because there's no import for VoidCallback type.