-
-
Save florentinobenedictus/20abf7dc9111067d398c067bc2332986 to your computer and use it in GitHub Desktop.
lib/src/features/home/view/home_highlight.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2022 The Flutter Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style license that can be | |
// found in the LICENSE file. | |
import 'package:flutter/material.dart'; | |
import 'package:url_launcher/url_launcher.dart'; | |
import '../../../shared/views/views.dart'; | |
class HomeHighlight extends StatelessWidget { | |
const HomeHighlight({super.key}); | |
@override | |
Widget build(BuildContext context) { | |
return Row( | |
children: [ | |
Expanded( | |
child: Padding( | |
padding: const EdgeInsets.symmetric(horizontal: 35, vertical: 5), // Modify this line | |
child: Clickable( | |
child: SizedBox( | |
height: 275, | |
child: ClipRRect( | |
borderRadius: BorderRadius.circular(10), | |
child: Image.asset( | |
'assets/images/news/concert.jpeg', | |
fit: BoxFit.cover, | |
), | |
), | |
), | |
onTap: () => launchUrl(Uri.parse('https://docs.flutter.dev')), | |
), | |
), | |
), | |
], | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment