Skip to content

Commit

Permalink
resolve conflict with upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajkumarbhakta committed May 17, 2024
1 parent 9bbd4f4 commit 13ba9f0
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:adaptive_theme/adaptive_theme.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:learn/pages/about.dart';
import 'package:learn/pages/flowers.dart';
import 'package:learn/pages/modules/atoz.dart';
Expand All @@ -11,11 +12,10 @@ import 'package:learn/pages/modules/parts.dart';
import 'package:learn/pages/modules/shapes.dart';
import 'package:learn/pages/modules/solar.dart';
import 'package:learn/utils/routes.dart';
import 'package:learn/widgets/drawer.dart';
import 'package:learn/pages/modules/colours.dart';
import 'package:fluttertoast/fluttertoast.dart';
import 'package:learn/widgets/navbar/navbar.dart';

import 'cubit/index_cubit.dart';
import 'pages/home.dart';

DateTime? currentBackPressTime;
Expand Down
39 changes: 39 additions & 0 deletions lib/pages/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class _MyHomePageState extends State<MyHomePage> {
bool _isImageClicked2 = false;
bool _isImageClicked3 = false;
bool _isImageClicked4 = false;
bool _isImageClicked5 = false;
bool _isDarkTheme = false;

Future<bool> _onBackPressed() {
Expand Down Expand Up @@ -262,6 +263,44 @@ class _MyHomePageState extends State<MyHomePage> {
style: TextStyle(fontSize: 24, fontWeight: FontWeight.bold),
),
const Text("Explore and learn about the colours!"),
const SizedBox(height: 20),
GestureDetector(
onTap: () {
setState(() {
_isImageClicked5 = !_isImageClicked5;
});
Future.delayed(const Duration(milliseconds: 300), () {
Navigator.pushNamed(context, AllRoutes.flowerRoute);
});
},
child: AnimatedContainer(
duration: const Duration(milliseconds: 300),
curve: Curves.easeInOut,
height: _isImageClicked5 ? 325 : 350,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(12),
border: Border.all(color: Colors.black, width: 2),
boxShadow: [
BoxShadow(
color: Colors.black.withOpacity(0.2),
spreadRadius: 2,
blurRadius: 5,
offset: const Offset(0, 3),
),
],
image: const DecorationImage(
image: AssetImage('assets/images/flowers/flower_banner.jpeg'),
fit: BoxFit.cover,
),
),
),
),
const SizedBox(height: 20),
const Text(
'FLOWERS',
style: TextStyle(fontSize: 24, fontWeight: FontWeight.bold),
),
const Text("Explore beauty of nature flowers."),
],
),
),
Expand Down

0 comments on commit 13ba9f0

Please sign in to comment.