mirror of
https://github.com/Iconica-Development/flutter_dialogs.git
synced 2025-05-19 03:03:45 +02:00
Compare commits
5 commits
Author | SHA1 | Date | |
---|---|---|---|
|
1566747318 | ||
aa109b2791 | |||
c968299bfd | |||
|
30d52c2a53 | ||
|
61a7cca8b0 |
6 changed files with 31 additions and 3 deletions
14
.github/workflows/release.yml
vendored
Normal file
14
.github/workflows/release.yml
vendored
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
name: Iconica Standard Component Release Workflow
|
||||||
|
# Workflow Caller version: 1.0.0
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
call-global-iconica-workflow:
|
||||||
|
uses: Iconica-Development/.github/.github/workflows/component-release.yml@master
|
||||||
|
secrets: inherit
|
||||||
|
permissions: write-all
|
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -36,3 +36,7 @@ example/linux
|
||||||
example/macos
|
example/macos
|
||||||
example/windows
|
example/windows
|
||||||
example/web
|
example/web
|
||||||
|
|
||||||
|
# FVM Version Cache
|
||||||
|
.fvm/
|
||||||
|
.fvmrc
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
## 1.1.0
|
||||||
|
- Add option `bottomAlertDialogPadding` to `BottomAlertDialogConfig` for specifying the empty space above the title of a dialog. By default it is an EdgeInsets with top 10px.
|
||||||
|
|
||||||
## 1.0.0
|
## 1.0.0
|
||||||
- Flutter_dialogs and flutter_bottom_alert_dialogs combined into one package
|
- Flutter_dialogs and flutter_bottom_alert_dialogs combined into one package
|
||||||
- Add default padding to the bottom alert dialog that is the size of the safe area of a device. You can disable this by setting `useSafeAreaPadding` to false.
|
- Add default padding to the bottom alert dialog that is the size of the safe area of a device. You can disable this by setting `useSafeAreaPadding` to false.
|
||||||
|
|
|
@ -282,7 +282,7 @@ class BottomAlertDialog extends StatelessWidget {
|
||||||
child: Stack(
|
child: Stack(
|
||||||
children: [
|
children: [
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.only(top: 10),
|
padding: config.bottomAlertDialogPadding,
|
||||||
child: Align(
|
child: Align(
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
child: Column(
|
child: Column(
|
||||||
|
|
|
@ -29,6 +29,7 @@ class BottomAlertDialogConfig extends InheritedWidget {
|
||||||
CloseButtonBuilder? closeButtonBuilder,
|
CloseButtonBuilder? closeButtonBuilder,
|
||||||
this.yesText = "Yes",
|
this.yesText = "Yes",
|
||||||
this.noText = "No",
|
this.noText = "No",
|
||||||
|
this.bottomAlertDialogPadding = const EdgeInsets.only(top: 10),
|
||||||
this.backgroundColor,
|
this.backgroundColor,
|
||||||
super.key,
|
super.key,
|
||||||
}) : _buttonBuilder = buttonBuilder,
|
}) : _buttonBuilder = buttonBuilder,
|
||||||
|
@ -38,6 +39,10 @@ class BottomAlertDialogConfig extends InheritedWidget {
|
||||||
final CloseButtonBuilder? _closeButtonBuilder;
|
final CloseButtonBuilder? _closeButtonBuilder;
|
||||||
final String yesText;
|
final String yesText;
|
||||||
final String noText;
|
final String noText;
|
||||||
|
|
||||||
|
/// The padding that is put between the top of the dialog and the content.
|
||||||
|
/// This is by default const EdgeInsets.only(top:10).
|
||||||
|
final EdgeInsets bottomAlertDialogPadding;
|
||||||
final Color? backgroundColor;
|
final Color? backgroundColor;
|
||||||
|
|
||||||
ButtonBuilder get buttonBuilder =>
|
ButtonBuilder get buttonBuilder =>
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
name: flutter_dialogs
|
name: flutter_dialogs
|
||||||
description: A new Flutter package project.
|
description: A new Flutter package project.
|
||||||
version: 1.0.0
|
version: 1.1.0
|
||||||
homepage: https://github.com/Iconica-Development/flutter_dialogs
|
homepage: https://github.com/Iconica-Development/flutter_dialogs
|
||||||
|
|
||||||
|
publish_to: https://forgejo.internal.iconica.nl/api/packages/internal/pub
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=2.18.2 <3.0.0"
|
sdk: ">=3.0.0 <4.0.0"
|
||||||
flutter: ">=1.17.0"
|
flutter: ">=1.17.0"
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|
Loading…
Reference in a new issue