Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

noNetworkConnectionSnackBar.dart Error #116

Closed
TheAmanM opened this issue Aug 20, 2022 · 5 comments · Fixed by #106
Closed

noNetworkConnectionSnackBar.dart Error #116

TheAmanM opened this issue Aug 20, 2022 · 5 comments · Fixed by #106

Comments

@TheAmanM
Copy link
Contributor

TheAmanM commented Aug 20, 2022

noNetworkConnectionSnackBar.dart currently contains the following code:

import 'package:exerlog/UI/global.dart';
import 'package:flutter/material.dart';

SnackBar noNetworkConnectionSnackBar() => SnackBar(
      backgroundColor: redBackgroundColor,
      duration: Duration(
          days:
              365), // set to a year so that it doesn't disappear automatically untill the user clicks on the Dismiss button
      content: Text('No network connection, please check your connection'),
      action: SnackBarAction(
        textColor: textColorBlue,
        label: 'Dismiss',
        onPressed: () {},
      ),
    );

redBackgroundColor and textColorBlue do not exist in global.dart

@mfederowicz
Copy link
Contributor

Hi @TheAmanM check #106, we know about the problem, please be patient :)

@ramsy0dev
Copy link
Contributor

ramsy0dev commented Aug 20, 2022

sorry i forgot to do a push to my global.dart that contains the textColorBlue and redBackgroundColor values the issue well get fixed in #117

@TheAmanM
Copy link
Contributor Author

Understood, thank you! Should I close this issue?

@ramsy0dev
Copy link
Contributor

By the way i looked into the pull requests that got merged @jorre127 when he did this PR he accidently removed the colors from the global.dart file and his PR was merged after my PR was merged, and that cause to redBackgroundColor and textColorBlue not being found

@jorre127
Copy link
Contributor

For anyone reading check discussion in #117 for more info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants