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

Implementing Perfect Responsiveness #43

Open
fivebellhyun opened this issue Apr 14, 2024 · 0 comments
Open

Implementing Perfect Responsiveness #43

fivebellhyun opened this issue Apr 14, 2024 · 0 comments
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@fivebellhyun
Copy link
Member

fivebellhyun commented Apr 14, 2024

Overall

We developed the game text style using �static(In addition to this, in as many areas as possible to save resources) because there is no need to change the screen size during gameplay.

However, according to the competition rules, the more responsive the game is, the higher the score it receives. Currently, on the web platform, we set the value to the size of the screen when the program first starts to optimize our efficiency. If the screen size changes afterward, the website can be refreshed to adjust accordingly. Should we change this to be fully responsive in real-time?

Considering the efficiency aspect and the evaluation criteria of the competition related to responsiveness, what would you recommend?

Examples

maximum
스크린샷 2024-04-15 오전 3 23 56

When reducing the screen without refreshing
스크린샷 2024-04-15 오전 3 24 48
image

It is responsive and adapts to the screen size at the time of refresh, so it is adjusted when refreshed.
스크린샷 2024-04-15 오전 3 31 01

Codes

import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:sinking_us/helpers/constants/app_colors.dart';

@immutable
class AppTypography {
  const AppTypography._();
  
  static final blackPixel = TextStyle(
      fontFamily: 'Galmuri', fontSize: 10.sp, color: AppColors.textBlack);
  static final whitePixel = TextStyle(
      fontFamily: 'Galmuri', fontSize: 10.sp, color: AppColors.textWhite);
  static final grayPixel = TextStyle(
      fontFamily: 'Galmuri',
      fontSize: 10.sp,
      color: const Color.fromARGB(255, 166, 166, 166));
  static final timerPixel = TextStyle(
      fontFamily: 'Galmuri',
      fontSize: 20.sp,
      color: AppColors.textBlack,
      fontWeight: FontWeight.w900);
}
@fivebellhyun fivebellhyun added help wanted Extra attention is needed question Further information is requested labels Apr 14, 2024
@fivebellhyun fivebellhyun changed the title [Question] Implementing Perfect Responsiveness Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant