-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from JohnRamberger/development
Development
- Loading branch information
Showing
10 changed files
with
410 additions
and
66 deletions.
There are no files selected for viewing
38 changes: 19 additions & 19 deletions
38
.github/workflows/tag.yaml → .github/oldworkflows/tag.yaml
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,16 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
class HeadingListTile extends StatelessWidget { | ||
const HeadingListTile({required this.labelText, super.key}); | ||
|
||
final String labelText; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return ListTile( | ||
title: Text( | ||
labelText, | ||
style: Theme.of(context).textTheme.headline5, | ||
)); | ||
} | ||
} |
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,53 @@ | ||
import 'package:badges/badges.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:hacklytics_checkin_flutter/components/HeadingListTile.component.dart'; | ||
|
||
class ListViewCard extends StatelessWidget { | ||
const ListViewCard({this.labelText = "", required this.children, super.key}); | ||
|
||
final String labelText; | ||
final List<Widget> children; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return labelText.isEmpty ? _buildNoLabel() : _buildWithLabel(); | ||
} | ||
|
||
_buildNoLabel() { | ||
return Card( | ||
child: ListView( | ||
shrinkWrap: true, | ||
physics: const ClampingScrollPhysics(), | ||
children: children, | ||
), | ||
); | ||
} | ||
|
||
_buildWithLabel() { | ||
return Card( | ||
child: ListView( | ||
shrinkWrap: true, | ||
physics: const ClampingScrollPhysics(), | ||
children: [ | ||
HeadingListTile(labelText: labelText), | ||
// const Divider(), | ||
...children | ||
], | ||
), | ||
); | ||
} | ||
} | ||
|
||
// Badge( | ||
// badgeContent: Text(labelText), | ||
// shape: BadgeShape.square, | ||
// alignment: Alignment.topRight, | ||
// position: BadgePosition.topEnd(top: 2, end: 2), | ||
// borderRadius: BorderRadius.circular(10), | ||
// child: Card( | ||
// child: ListView( | ||
// shrinkWrap: true, | ||
// physics: const ClampingScrollPhysics(), | ||
// children: children, | ||
// ), | ||
// )); |
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,55 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
class ConfirmToast extends StatelessWidget { | ||
const ConfirmToast({required this.labelText, super.key}); | ||
|
||
final String labelText; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Container( | ||
padding: const EdgeInsets.symmetric(horizontal: 24.0, vertical: 12.0), | ||
decoration: BoxDecoration( | ||
borderRadius: BorderRadius.circular(25.0), | ||
color: Colors.green.shade500, | ||
), | ||
child: Row( | ||
mainAxisSize: MainAxisSize.min, | ||
children: [ | ||
const Icon(Icons.check), | ||
const SizedBox( | ||
width: 12.0, | ||
), | ||
Text(labelText), | ||
], | ||
), | ||
); | ||
} | ||
} | ||
|
||
class ErrorToast extends StatelessWidget { | ||
const ErrorToast({required this.labelText, super.key}); | ||
|
||
final String labelText; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Container( | ||
padding: const EdgeInsets.symmetric(horizontal: 24.0, vertical: 12.0), | ||
decoration: BoxDecoration( | ||
borderRadius: BorderRadius.circular(25.0), | ||
color: Colors.red.shade500, | ||
), | ||
child: Row( | ||
mainAxisSize: MainAxisSize.min, | ||
children: [ | ||
const Icon(Icons.error), | ||
const SizedBox( | ||
width: 12.0, | ||
), | ||
Text(labelText), | ||
], | ||
), | ||
); | ||
} | ||
} |
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
Oops, something went wrong.