This file contains hidden or 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 2025. ⓒ github.com/Touy2004 All rights reserved. | |
import 'package:flutter/cupertino.dart'; | |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { |
This file contains hidden or 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 2025. ⓒ github.com/Touy2004 All rights reserved. | |
import 'package:flutter/material.dart'; | |
import 'package:google_fonts/google_fonts.dart'; | |
import 'package:introduction_screen/introduction_screen.dart'; | |
import 'package:shared_preferences/shared_preferences.dart'; | |
late SharedPreferences prefs; | |
void main() async { | |
// Required to use async in the main() function |
This file contains hidden or 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 2025. ⓒ github.com/Touy2004 All rights reserved. | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
debugShowCheckedModeBanner: false, | |
home: Scaffold( | |
body: Center( |
This file contains hidden or 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 2025. ⓒ github.com/Touy2004 All rights reserved. | |
return MaterialApp( | |
debugShowCheckedModeBanner: false, | |
home: Scaffold( | |
backgroundColor: Colors.grey[200], | |
body: Center( | |
child: ListTile( | |
leading: CircleAvatar( | |
radius: 36, | |
backgroundColor: Colors.white, |
This file contains hidden or 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 2025. ⓒ github.com/Touy2004 All rights reserved. | |
body: SingleChildScrollView( | |
child: Column( | |
crossAxisAlignment: CrossAxisAlignment.stretch, | |
children: [ | |
Container(height: 150, width: 100, color: Colors.amber[100]), | |
Container(height: 150, width: 100, color: Colors.amber[200]), | |
Container(height: 150, width: 100, color: Colors.amber[300]), | |
Container(height: 150, width: 100, color: Colors.amber[400]), | |
Container(height: 150, width: 100, color: Colors.amber[500]), |
This file contains hidden or 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 2025. ⓒ github.com/Touy2004 All rights reserved. | |
body: GridView.count( | |
// The number of columns in the grid. | |
crossAxisCount: 2, | |
// Spacing between items. | |
mainAxisSpacing: 8.0, | |
crossAxisSpacing: 8.0, | |
// Generating a list of widgets to display in the grid. |
This file contains hidden or 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 2025. ⓒ github.com/Touy2004 All rights reserved. | |
body: ListView.builder( | |
// Tells the ListView the total number of items in our list. | |
itemCount: 10, | |
// The builder function is called for each item. 'index' is the current | |
itemBuilder: (context, index) { | |
// Return the widget for the item at the given index. | |
return ListTile(title: Text('Item at index: $index')); | |
}, |
This file contains hidden or 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 2025. ⓒ github.com/Touy2004 All rights reserved. | |
body: ListView( | |
padding: EdgeInsets.all(8), | |
children: [ | |
ListTile( | |
leading: Icon(Icons.map), | |
title: Text('Map'), | |
), // ListTile | |
ListTile( | |
leading: Icon(Icons.photo_album), |
This file contains hidden or 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 2025. ⓒ github.com/Touy2004 All rights reserved. | |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); |
This file contains hidden or 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 2025. ⓒ github.com/Touy2004 All rights reserved. | |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); |