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

Reuse widgets from sharezone_widgets in website #1243

Merged
merged 1 commit into from
Jan 7, 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: 1 addition & 1 deletion website/lib/home/src/all_in_one_platform.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import 'package:sharezone_website/widgets/column_spacing.dart';
import 'package:sharezone_website/widgets/headline.dart';
import 'package:sharezone_website/widgets/row_spacing.dart';
import 'package:sharezone_website/widgets/section.dart';
import 'package:sharezone_website/widgets/shadow_card.dart';
import 'package:sharezone_widgets/sharezone_widgets.dart' hide Headline;

import '../../main.dart';
import '../home_page.dart';
Expand Down
2 changes: 1 addition & 1 deletion website/lib/home/src/traction.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import 'package:dio/dio.dart';
import 'package:flutter/material.dart';
import 'package:number_slide_animation/number_slide_animation.dart';
import 'package:sharezone_website/widgets/column_spacing.dart';
import 'package:sharezone_website/widgets/max_width_constraint_box.dart';
import 'package:sharezone_website/widgets/transparent_button.dart';
import 'package:sharezone_widgets/sharezone_widgets.dart';

import '../home_page.dart';

Expand Down
2 changes: 1 addition & 1 deletion website/lib/legal/privacy_policy.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import 'package:flutter/material.dart';
import 'package:sharezone_website/page.dart';
import 'package:sharezone_website/widgets/headline.dart';
import 'package:sharezone_website/widgets/max_width_constraint_box.dart';
import 'package:sharezone_widgets/sharezone_widgets.dart' hide Headline;

class PrivacyPolicyPage extends StatelessWidget {
const PrivacyPolicyPage({super.key});
Expand Down
3 changes: 2 additions & 1 deletion website/lib/page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ import 'package:sharezone_website/sharezone_plus/sharezone_plus_page.dart';
import 'package:sharezone_website/support_page.dart';
import 'package:sharezone_website/utils.dart';
import 'package:sharezone_website/widgets/column_spacing.dart';
import 'package:sharezone_widgets/sharezone_widgets.dart'
hide SharezoneLogo, LogoColor;

import 'footer.dart';
import 'home/home_page.dart';
import 'widgets/max_width_constraint_box.dart';
import 'widgets/sharezone_logo.dart';
import 'widgets/transparent_button.dart';

Expand Down
5 changes: 2 additions & 3 deletions website/lib/support_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
import 'package:sharezone_website/page.dart';
import 'package:sharezone_website/widgets/avatar_card.dart';
import 'package:sharezone_widgets/sharezone_widgets.dart';
import 'package:url_launcher/url_launcher.dart';

import 'widgets/avatar_card.dart';
import 'widgets/section.dart';
import 'widgets/shadow_card.dart';
import 'widgets/snackbars.dart';

const phoneNumber = '+49 1516 7754541';

Expand Down
2 changes: 1 addition & 1 deletion website/lib/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// SPDX-License-Identifier: EUPL-1.2

import 'package:flutter/material.dart';
import 'package:sharezone_website/widgets/snackbars.dart';
import 'package:sharezone_widgets/sharezone_widgets.dart';
import 'package:url_launcher/url_launcher.dart' as url_launcher;

/// Launches the given [url] in the browser.
Expand Down
3 changes: 1 addition & 2 deletions website/lib/widgets/avatar_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@

import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';

import 'shadow_card.dart';
import 'package:sharezone_widgets/sharezone_widgets.dart';

// Karte mit CircleAvatar und dahinter eine Karte
// Wichtig: Es muss entweder ein SvgPath oder ein imagePath angeben werden!
Expand Down
52 changes: 0 additions & 52 deletions website/lib/widgets/divider_with_text.dart

This file was deleted.

29 changes: 0 additions & 29 deletions website/lib/widgets/max_width_constraint_box.dart

This file was deleted.

3 changes: 1 addition & 2 deletions website/lib/widgets/section.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@

import 'package:flutter/material.dart';
import 'package:sharezone_website/home/home_page.dart';

import 'max_width_constraint_box.dart';
import 'package:sharezone_widgets/sharezone_widgets.dart';

class Section extends StatelessWidget {
const Section({super.key, this.child});
Expand Down
107 changes: 0 additions & 107 deletions website/lib/widgets/shadow_card.dart

This file was deleted.

72 changes: 0 additions & 72 deletions website/lib/widgets/snackbars.dart

This file was deleted.

Loading