Skip to content
Open
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
File renamed without changes.
1 change: 1 addition & 0 deletions lib/common/core.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export 'breakpoints.dart';
1 change: 0 additions & 1 deletion lib/core/core.dart

This file was deleted.

6 changes: 5 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ import 'pages/home.dart';

main() => runApp(
DevicePreview(builder: (_) =>
MyApp(),
const MyApp(),
),
);

class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);

@override
Widget build(BuildContext context) {
return MaterialApp(
Expand Down Expand Up @@ -48,6 +50,8 @@ class MyApp extends StatelessWidget {


class HomeWithOverFlow extends StatelessWidget {
const HomeWithOverFlow({Key? key}) : super(key: key);


@override
Widget build(BuildContext context) {
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/home/widgets/sections/course_section.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ignore_for_file: prefer_const_constructors, use_key_in_widget_constructors

import 'package:app_responsive/core/breakpoints.dart';
import 'package:app_responsive/common/breakpoints.dart';
import 'package:app_responsive/pages/home/widgets/couse_item.dart';
import 'package:flutter/material.dart';

Expand Down
2 changes: 1 addition & 1 deletion lib/pages/home/widgets/sections/top_section.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ignore_for_file: prefer_const_constructors

import 'package:app_responsive/core/core.dart';
import 'package:app_responsive/common/core.dart';
import 'package:app_responsive/pages/home/widgets/fields/fields.dart';
import 'package:flutter/material.dart';

Expand Down
10 changes: 6 additions & 4 deletions lib/pages/home_page.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import 'package:app_responsive/core/core.dart';
import 'package:app_responsive/common/core.dart';
import 'package:flutter/material.dart';

import 'home/widgets/app_bar/app_bar.dart';
import 'home/widgets/sections/sections.dart';

class HomePage extends StatelessWidget {
const HomePage({Key? key}) : super(key: key);

@override
Widget build(BuildContext context) {
return LayoutBuilder(
Expand All @@ -18,9 +20,9 @@ class HomePage extends StatelessWidget {
child: MobileAppbar(),
preferredSize: const Size(double.infinity, 56),
)
: PreferredSize(
: const PreferredSize(
child: WebAppBar(),
preferredSize: const Size(double.infinity, 72.0),
preferredSize: Size(double.infinity, 72.0),
),
drawer:
constraints.maxWidth < mobileBreakpoint ? const Drawer() : null,
Expand All @@ -29,7 +31,7 @@ class HomePage extends StatelessWidget {
child: ConstrainedBox(
constraints: const BoxConstraints(maxWidth: 1400),
child: ListView(
children: [TopSection(), AdvantagesSection(), CourseSection()],
children: [const TopSection(), AdvantagesSection(), CourseSection()],
),
),
),
Expand Down