-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: profile画像Widgetをcomponent化 * add: conference image * add: hands on widget * fix: wanted component * fix: WantedWidgetを使う形に変更 * add: image * Auto format (#164) Co-authored-by: YumNumm <YumNumm@users.noreply.github.com> * fix: 生成コードの再生成 ```fish for file in (find . -name '*.g.dart' -or -name '*.freezed.dart') rm $file end fvm flutter pub run build_runner build -d ``` * fix: mobileでwantedWidgetのchildが表示されない問題を解消 * fix: Sectionの順番を変更 * add: header button --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: YumNumm <YumNumm@users.noreply.github.com>
- Loading branch information
1 parent
7c74eeb
commit 7be5d0a
Showing
21 changed files
with
371 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"flutterSdkVersion": "3.14.0-0.2.pre@beta", | ||
"flavors": {} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import 'package:confwebsite2023/core/theme.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
class LeftFilledIconButton extends StatelessWidget { | ||
const LeftFilledIconButton({ | ||
required this.onPressed, | ||
required this.buttonTitle, | ||
required this.icon, | ||
super.key, | ||
}); | ||
|
||
final void Function() onPressed; | ||
final String buttonTitle; | ||
final IconData icon; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
final theme = Theme.of(context); | ||
final textTheme = theme.textTheme; | ||
final colorScheme = theme.colorScheme; | ||
return SizedBox( | ||
height: 40, | ||
child: ElevatedButton( | ||
style: ElevatedButton.styleFrom( | ||
backgroundColor: colorScheme.primary, | ||
padding: const EdgeInsets.symmetric( | ||
horizontal: 16, | ||
vertical: 8, | ||
), | ||
), | ||
onPressed: onPressed, | ||
child: Row( | ||
mainAxisAlignment: MainAxisAlignment.center, | ||
mainAxisSize: MainAxisSize.min, | ||
children: [ | ||
Spaces.horizontal_8, | ||
Text( | ||
buttonTitle, | ||
style: textTheme.labelLarge?.copyWith( | ||
color: colorScheme.onPrimary, | ||
), | ||
), | ||
Spaces.horizontal_8, | ||
Icon( | ||
icon, | ||
size: 18, | ||
color: colorScheme.onPrimary, | ||
), | ||
], | ||
), | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:transparent_image/transparent_image.dart'; | ||
|
||
class ProfileImage extends StatelessWidget { | ||
const ProfileImage({ | ||
required this.imageUrl, | ||
required this.size, | ||
super.key, | ||
}); | ||
final String imageUrl; | ||
final double size; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return SizedBox( | ||
height: size, | ||
width: size, | ||
child: FittedBox( | ||
child: ClipOval( | ||
child: FadeInImage( | ||
fit: BoxFit.cover, | ||
image: NetworkImage(imageUrl), | ||
placeholder: MemoryImage(kTransparentImage), | ||
imageErrorBuilder: (_, __, ___) => const FittedBox( | ||
child: Icon( | ||
Icons.error, | ||
), | ||
), | ||
), | ||
), | ||
), | ||
); | ||
} | ||
} |
Oops, something went wrong.