Skip to content

Commit

Permalink
Fix Score to 140
Browse files Browse the repository at this point in the history
  • Loading branch information
Bwolfs2 committed Sep 13, 2022
1 parent aa355f3 commit e3ea923
Show file tree
Hide file tree
Showing 7 changed files with 243 additions and 232 deletions.
File renamed without changes.
151 changes: 81 additions & 70 deletions example/lib/src/second/second_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,77 +13,88 @@ class _SecondPageState extends State<SecondPage> {
@override
Widget build(BuildContext context) {
return Scaffold(
resizeToAvoidBottomInset: false,
appBar: AppBar(
centerTitle: true,
title: const Text('Asuka'),
),
body: Center(
child: SingleChildScrollView(
child: Column(
mainAxisAlignment: MainAxisAlignment.end,
children: [
Hero(
tag: 'HeroTag',
child: Container(
height: 100,
color: Colors.red,
),
resizeToAvoidBottomInset: false,
appBar: AppBar(
centerTitle: true,
title: const Text('Asuka'),
),
body: Center(
child: SingleChildScrollView(
child: Column(
mainAxisAlignment: MainAxisAlignment.end,
children: [
Hero(
tag: 'HeroTag',
child: Container(
height: 100,
color: Colors.red,
),
const TextField(),
ElevatedButton(
child: const Text('Back to Home'),
onPressed: () {
Navigator.pop(context);
},),
ElevatedButton(
child: const Text('Back to Home'),
onPressed: () {
Navigator.pop(context);
},),
ElevatedButton(
child: const Text('Back to Home'),
onPressed: () {
Navigator.pop(context);
},),
ElevatedButton(
child: const Text('Back to Home'),
onPressed: () {
Navigator.pop(context);
},),
ElevatedButton(
child: const Text('Back to Home'),
onPressed: () {
Navigator.pop(context);
},),
ElevatedButton(
child: const Text('Back to Home'),
onPressed: () {
Navigator.pop(context);
},),
ElevatedButton(
child: const Text('Back to Home'),
onPressed: () {
Navigator.pop(context);
},),
ElevatedButton(
child: const Text('Back to Home'),
onPressed: () {
Navigator.pop(context);
},),
ElevatedButton(
child: const Text('Back to Home'),
onPressed: () {
Navigator.pop(context);
},),
ElevatedButton(
child: const Text('Back to Home'),
onPressed: () {
Navigator.pop(context);
},),
],
),
),
const TextField(),
ElevatedButton(
child: const Text('Back to Home'),
onPressed: () {
Navigator.pop(context);
},
),
ElevatedButton(
child: const Text('Back to Home'),
onPressed: () {
Navigator.pop(context);
},
),
ElevatedButton(
child: const Text('Back to Home'),
onPressed: () {
Navigator.pop(context);
},
),
ElevatedButton(
child: const Text('Back to Home'),
onPressed: () {
Navigator.pop(context);
},
),
ElevatedButton(
child: const Text('Back to Home'),
onPressed: () {
Navigator.pop(context);
},
),
ElevatedButton(
child: const Text('Back to Home'),
onPressed: () {
Navigator.pop(context);
},
),
ElevatedButton(
child: const Text('Back to Home'),
onPressed: () {
Navigator.pop(context);
},
),
ElevatedButton(
child: const Text('Back to Home'),
onPressed: () {
Navigator.pop(context);
},
),
ElevatedButton(
child: const Text('Back to Home'),
onPressed: () {
Navigator.pop(context);
},
),
ElevatedButton(
child: const Text('Back to Home'),
onPressed: () {
Navigator.pop(context);
},
),
],
),
),);
),
),
);
}
}
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ packages:
path: ".."
relative: true
source: path
version: "2.0.1+1"
version: "2.0.1+2"
async:
dependency: transitive
description:
Expand Down
24 changes: 14 additions & 10 deletions lib/snackbars/asuka_snack_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ class AsukaSnackbar extends SnackBar {
/// ```
/// This code generates an ElevatedButton, when pressed, it calls
/// asuka.AsukaSnackbar.warning("Warning").show()
factory AsukaSnackbar.warning(String content, {Key? key}) =>
AsukaSnackbar._(key, content, Color(0xFFE6CA72), icon: Icons.warning);
factory AsukaSnackbar.warning(String content, {Key? key}) => AsukaSnackbar._(key, content, Color(0xFFE6CA72), icon: Icons.warning);

///Creates a subclass of [AsukaSnackbar] called [AsukaSnackbar.Alert]
///passing the [key], [content], setting the [color] to [Color(0xffFA5456)] and the [icon] to [Icons.report].
Expand All @@ -107,8 +106,7 @@ class AsukaSnackbar extends SnackBar {
/// ```
/// This code generates an ElevatedButton, when pressed, it calls
/// asuka.AsukaSnackbar.alert("Alert").show()
factory AsukaSnackbar.alert(String content, {Key? key}) =>
AsukaSnackbar._(key, content, Color(0xffFA5456), icon: Icons.report);
factory AsukaSnackbar.alert(String content, {Key? key}) => AsukaSnackbar._(key, content, Color(0xffFA5456), icon: Icons.report);

///Creates a subclass of [AsukaSnackbar] called [AsukaSnackbar.Info]
///passing the [key], [content], setting the [color] to [Color(0xff3196DA)], an [action] and the [icon] to [Icons.help].
Expand All @@ -125,7 +123,11 @@ class AsukaSnackbar extends SnackBar {
///```
///This code generates an ElevatedButton, when pressed, it calls
///asuka.AsukaSnackbar.info("Info").show()
factory AsukaSnackbar.info(String content, {Key? key, SnackBarAction? snackBarAction}) =>
factory AsukaSnackbar.info(
String content, {
Key? key,
SnackBarAction? snackBarAction,
}) =>
AsukaSnackbar._(key, content, Color(0xff3196DA), action: snackBarAction, icon: Icons.help);

///Creates a subclass of [AsukaSnackbar] called [AsukaSnackbar.Success]
Expand All @@ -143,9 +145,12 @@ class AsukaSnackbar extends SnackBar {
/// ```
/// This code generates an ElevatedButton, when pressed, it calls
/// asuka.AsukaSnackbar.success("Success").show()
factory AsukaSnackbar.success(String content, {Key? key, SnackBarAction? snackBarAction}) =>
AsukaSnackbar._(key, content, Color(0xFF80AD49),
action: snackBarAction, icon: Icons.check_circle);
factory AsukaSnackbar.success(
String content, {
Key? key,
SnackBarAction? snackBarAction,
}) =>
AsukaSnackbar._(key, content, Color(0xFF80AD49), action: snackBarAction, icon: Icons.check_circle);

///Creates a subclass of [AsukaSnackbar] called [AsukaSnackbar.Message]
///passing the [key], [content], setting the [color] to [Color(0xff484848)].
Expand All @@ -162,8 +167,7 @@ class AsukaSnackbar extends SnackBar {
/// ```
/// This code generates an ElevatedButton, when pressed, it calls
/// asuka.AsukaSnackbar.message("Message").show()
factory AsukaSnackbar.message(String content, {Key? key}) =>
AsukaSnackbar._(key, content, Color(0xff484848));
factory AsukaSnackbar.message(String content, {Key? key}) => AsukaSnackbar._(key, content, Color(0xff484848));

void call() => show();

Expand Down
Loading

0 comments on commit e3ea923

Please sign in to comment.