Skip to content

Commit

Permalink
Fixes for Fluter 22 on latest Master
Browse files Browse the repository at this point in the history
  • Loading branch information
esDotDev committed Sep 18, 2020
1 parent ef94181 commit 6ffc257
Show file tree
Hide file tree
Showing 9 changed files with 137 additions and 91 deletions.
6 changes: 3 additions & 3 deletions flokk_src/lib/_internal/components/pinned_stack.dart
Expand Up @@ -17,15 +17,15 @@ class PinnedStack extends StatelessWidget {
final StackFit fit;
final AlignmentGeometry alignment;
final TextDirection textDirection;
final Overflow overflow;
final Clip clip;

const PinnedStack(
{Key key,
this.children,
this.fit = StackFit.expand,
this.alignment = Alignment.topLeft,
this.textDirection = TextDirection.ltr,
this.overflow = Overflow.visible})
this.clip = Clip.none})
: super(key: key);

@override
Expand All @@ -36,7 +36,7 @@ class PinnedStack extends StatelessWidget {
child: Stack(
fit: fit,
alignment: alignment,
overflow: overflow,
clipBehavior: clip,
textDirection: textDirection,
children: children,
),
Expand Down
2 changes: 1 addition & 1 deletion flokk_src/lib/commands/bootstrap_command.dart
Expand Up @@ -65,7 +65,7 @@ class BootstrapCommand extends AbstractCommand {
});

/// Reset models if there are any errors, or if the app version has been updated
if (errorLoadingData || appModel.version != AppModel.kCurrentVersion) {
if (errorLoadingData) {
authModel.reset();
twitterModel.reset();
githubModel.reset();
Expand Down
2 changes: 1 addition & 1 deletion flokk_src/lib/styled_components/clickable_icon_row.dart
Expand Up @@ -62,7 +62,7 @@ class _ClickableIconRowState extends State<ClickableIconRow> {
),
padding: EdgeInsets.symmetric(horizontal: Insets.l, vertical: Insets.m),
child: Stack(
overflow: Overflow.visible,
clipBehavior: Clip.none,
children: [
Row(
crossAxisAlignment: CrossAxisAlignment.start,
Expand Down
2 changes: 1 addition & 1 deletion flokk_src/lib/styled_components/flokk_logo.dart
Expand Up @@ -23,7 +23,7 @@ class FlokkSidebarLogo extends StatelessWidget {
return Container(
width: skinny ? 140 : 240,
child: Stack(
overflow: Overflow.visible,
clipBehavior: Clip.none,
children: [
Image.asset("assets/images/sidebar-logo.png", width: skinny ? 140 : 160, filterQuality: FilterQuality.high),
if (!skinny) ...{
Expand Down
Expand Up @@ -122,7 +122,7 @@ class _ContactsListWithHeadersState extends State<ContactsListWithHeaders> {
onCheckChanged: () => setState(() {}),
)
.opacity(checked.isEmpty ? 0 : 1, animate: true)
.scale(checked.isEmpty ? .98 : 1, animate: true)
.scale(all: checked.isEmpty ? .98 : 1, animate: true)
.translate(offset: Offset(0, checked.isEmpty ? -4 : 0), animate: true)
.animate(.1.seconds, Curves.easeOut)
],
Expand Down
Expand Up @@ -36,15 +36,15 @@ class _SocialActivitySectionState extends State<SocialActivitySection> {
GithubModel gitModel = context.watch();
TwitterModel twitterModel = context.watch();
return LayoutBuilder(
builder: (_, constraints) {
builder: (layoutContext, constraints) {
/// Responsively size tab bars
double tabWidth = constraints.maxWidth < PageBreaks.LargePhone ? 240 : 280;
TextStyle headerStyle = TextStyles.T1;

bool useTabView = constraints.maxWidth < PageBreaks.TabletPortrait - 100;

/// Determine which tab should be selected
var sectionType = context.select<AppModel, DashboardSocialSectionType>((model) => model.dashSocialSection);
var sectionType = layoutContext.select<AppModel, DashboardSocialSectionType>((model) => model.dashSocialSection);
int tabIndex = 0;
if (sectionType == DashboardSocialSectionType.Twitter) tabIndex = 1;
if (sectionType == DashboardSocialSectionType.Git) tabIndex = 2;
Expand Down
Expand Up @@ -85,7 +85,7 @@ class PlaceholderImageAndBgStack extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Stack(
overflow: Overflow.visible,
clipBehavior: Clip.none,
children: [
bgWidget ?? _BgCircle(),
Image.asset("assets/images/empty-$path@2x.png", height: height).positioned(top: top, left: left),
Expand Down

0 comments on commit 6ffc257

Please sign in to comment.