EXERLOG / exer_log

exer_log - authored by @KalleHallden

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

noNetworkConnectionSnackBar.dart Error

TheAmanM opened this issue · comments

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

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

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

Understood, thank you! Should I close this issue?

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

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