-
Notifications
You must be signed in to change notification settings - Fork 0
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
AlertDialogのUI実装 #19
base: develop
Are you sure you want to change the base?
AlertDialogのUI実装 #19
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
実装ありがとう!コメントしました!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
このコードってどこかで使用される予定とか将来的にあったりする?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Figmaにはまだ書いてないけどログアウトとか権限周りで使うよ
lib/debug/debug_page.dart
Outdated
_button( | ||
'Alert Dialog', | ||
onPressed: () { | ||
Navigator.of(context).push( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pushだけUtilのメソッドに変更して欲しい🙏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
修正しやす🙆♂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
d29fed3
修正した
lib/util/navigator_util.dart
Outdated
import 'package:pg_mobile/widgets/common_cupertino_alert_dialog.dart'; | ||
import 'package:pg_mobile/widgets/common_material_alert_dialog.dart'; | ||
|
||
class NavigatorUtil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
この名前だとrooting系の処理まとまってるクラスなのかなーって思ってしまうから
OSでモーダルの処理を分けてる旨が伝わる命名がベターだと思った
PlatformModalHandlerとかOSModalDispatcherとか
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
確かにそうやね…
クラス名をPlatformModalHandlerに変更するね
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
c991d8e
修正した
概要
Alert DialogのUIコンポーネントとその表示を行うメソッドを実装しました。
Alert DialogのデザインをなるべくFlutter標準のものに近づけるため、UI実装したものをデザインに逆輸入する予定です。
UI(Android)
UI(iOS)