Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #7

Merged
merged 7 commits into from
Feb 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ See [Changelog](.github/docs/CHANGELOG.md).

<p align="center">
This repository is under MIT license. You can see the <a href="https://github.com/felipecastrosales/site/blob/master/LICENSE">LICENSE</a> file for more details.

Please, avoid any usage from my keys and datas. 🚀
</p>

---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,23 @@ import 'package:flutter/material.dart';
import 'package:site/app/features/home/widgets/social/widgets/widgets.dart';
import 'package:site/app/widgets/body/body.dart';
import 'package:site/app/widgets/dividers/dividers.dart';
import 'package:site/app/widgets/utils_widgets/utils_widgets.dart';

class SocialAllCardsWeb extends StatelessWidget {
const SocialAllCardsWeb({super.key});

@override
Widget build(BuildContext context) {
return const SingleChildScrollView(
child: Column(
children: [
WebBody(
children: [
TitleTextList(isWeb: true),
],
),
SizedBox(height: 60),
SectionDivider(),
],
),
return const ColumnScrollable(
children: [
WebBody(
children: [
TitleTextList(isWeb: true),
],
),
SizedBox(height: 60),
SectionDivider(),
],
);
}
}
3 changes: 2 additions & 1 deletion lib/app/widgets/drawer/drawer_items.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import 'package:scrollable_positioned_list/scrollable_positioned_list.dart';

import 'package:site/app/core/l10n/l10n.dart';
import 'package:site/app/widgets/drawer/drawer.dart';
import 'package:site/app/widgets/utils_widgets/utils_widgets.dart';

class DrawerItems extends StatelessWidget {
const DrawerItems(
Expand All @@ -15,7 +16,7 @@ class DrawerItems extends StatelessWidget {

@override
Widget build(BuildContext context) {
return Column(
return ColumnScrollable(
children: [
DrawerTile(
title: AppTexts.get(context).home,
Expand Down
12 changes: 8 additions & 4 deletions lib/app/widgets/drawer/drawer_tile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,14 @@ class DrawerTile extends StatelessWidget with ScrollToMixin {
style: AppTextStyles.socialTitle,
),
),
leading: Icon(
leading,
size: 24,
color: AppColors.primary,
minLeadingWidth: 24,
leading: Padding(
padding: const EdgeInsets.only(right: 16),
child: Icon(
leading,
size: 24,
color: AppColors.primary,
),
),
),
),
Expand Down
19 changes: 19 additions & 0 deletions lib/app/widgets/utils_widgets/column_scrollable.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import 'package:flutter/material.dart';

class ColumnScrollable extends StatelessWidget {
const ColumnScrollable({
super.key,
required this.children,
});

final List<Widget> children;

@override
Widget build(BuildContext context) {
return SingleChildScrollView(
child: Column(
children: children,
),
);
}
}
1 change: 1 addition & 0 deletions lib/app/widgets/utils_widgets/utils_widgets.dart
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export 'column_scrollable.dart';
export 'single_child_scroll_view_without_scroll.dart';
Loading
Loading