├── linux
├── .gitignore
├── runner
│ ├── main.cc
│ ├── my_application.h
│ ├── CMakeLists.txt
│ └── my_application.cc
├── flutter
│ ├── generated_plugin_registrant.h
│ ├── generated_plugin_registrant.cc
│ ├── generated_plugins.cmake
│ └── CMakeLists.txt
└── CMakeLists.txt
├── ios
├── Flutter
│ ├── Debug.xcconfig
│ ├── Release.xcconfig
│ └── AppFrameworkInfo.plist
├── Runner
│ ├── Runner-Bridging-Header.h
│ ├── Assets.xcassets
│ │ ├── LaunchImage.imageset
│ │ │ ├── LaunchImage.png
│ │ │ ├── LaunchImage@2x.png
│ │ │ ├── LaunchImage@3x.png
│ │ │ ├── README.md
│ │ │ └── Contents.json
│ │ └── AppIcon.appiconset
│ │ │ ├── Icon-App-20x20@1x.png
│ │ │ ├── Icon-App-20x20@2x.png
│ │ │ ├── Icon-App-20x20@3x.png
│ │ │ ├── Icon-App-29x29@1x.png
│ │ │ ├── Icon-App-29x29@2x.png
│ │ │ ├── Icon-App-29x29@3x.png
│ │ │ ├── Icon-App-40x40@1x.png
│ │ │ ├── Icon-App-40x40@2x.png
│ │ │ ├── Icon-App-40x40@3x.png
│ │ │ ├── Icon-App-60x60@2x.png
│ │ │ ├── Icon-App-60x60@3x.png
│ │ │ ├── Icon-App-76x76@1x.png
│ │ │ ├── Icon-App-76x76@2x.png
│ │ │ ├── Icon-App-1024x1024@1x.png
│ │ │ ├── Icon-App-83.5x83.5@2x.png
│ │ │ └── Contents.json
│ ├── AppDelegate.swift
│ ├── Base.lproj
│ │ ├── Main.storyboard
│ │ └── LaunchScreen.storyboard
│ └── Info.plist
├── Runner.xcodeproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── WorkspaceSettings.xcsettings
│ │ │ └── IDEWorkspaceChecks.plist
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── WorkspaceSettings.xcsettings
│ │ └── IDEWorkspaceChecks.plist
├── RunnerTests
│ └── RunnerTests.swift
└── .gitignore
├── macos
├── Flutter
│ ├── Flutter-Debug.xcconfig
│ ├── Flutter-Release.xcconfig
│ └── GeneratedPluginRegistrant.swift
├── Runner
│ ├── Configs
│ │ ├── Debug.xcconfig
│ │ ├── Release.xcconfig
│ │ ├── Warnings.xcconfig
│ │ └── AppInfo.xcconfig
│ ├── Assets.xcassets
│ │ └── AppIcon.appiconset
│ │ │ ├── app_icon_128.png
│ │ │ ├── app_icon_16.png
│ │ │ ├── app_icon_256.png
│ │ │ ├── app_icon_32.png
│ │ │ ├── app_icon_512.png
│ │ │ ├── app_icon_64.png
│ │ │ ├── app_icon_1024.png
│ │ │ └── Contents.json
│ ├── Release.entitlements
│ ├── AppDelegate.swift
│ ├── DebugProfile.entitlements
│ ├── MainFlutterWindow.swift
│ └── Info.plist
├── .gitignore
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── IDEWorkspaceChecks.plist
├── Runner.xcodeproj
│ ├── project.xcworkspace
│ │ └── xcshareddata
│ │ │ └── IDEWorkspaceChecks.plist
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
└── RunnerTests
│ └── RunnerTests.swift
├── assets
├── dora1.jpg
├── dora2.jpg
├── madrid.webp
├── profile.jpg
└── random.jpeg
├── web
├── favicon.png
├── icons
│ ├── Icon-192.png
│ ├── Icon-512.png
│ ├── Icon-maskable-192.png
│ └── Icon-maskable-512.png
├── manifest.json
└── index.html
├── windows
├── runner
│ ├── resources
│ │ └── app_icon.ico
│ ├── resource.h
│ ├── runner.exe.manifest
│ ├── utils.h
│ ├── flutter_window.h
│ ├── main.cpp
│ ├── CMakeLists.txt
│ ├── utils.cpp
│ ├── flutter_window.cpp
│ ├── Runner.rc
│ ├── win32_window.h
│ └── win32_window.cpp
├── .gitignore
├── flutter
│ ├── generated_plugin_registrant.h
│ ├── generated_plugin_registrant.cc
│ ├── generated_plugins.cmake
│ └── CMakeLists.txt
└── CMakeLists.txt
├── android
├── app
│ ├── src
│ │ ├── main
│ │ │ ├── res
│ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── drawable
│ │ │ │ │ └── launch_background.xml
│ │ │ │ ├── drawable-v21
│ │ │ │ │ └── launch_background.xml
│ │ │ │ ├── values
│ │ │ │ │ └── styles.xml
│ │ │ │ └── values-night
│ │ │ │ │ └── styles.xml
│ │ │ ├── kotlin
│ │ │ │ └── com
│ │ │ │ │ └── example
│ │ │ │ │ └── thirty_widgets
│ │ │ │ │ └── MainActivity.kt
│ │ │ └── AndroidManifest.xml
│ │ ├── debug
│ │ │ └── AndroidManifest.xml
│ │ └── profile
│ │ │ └── AndroidManifest.xml
│ └── build.gradle.kts
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
├── .gitignore
├── build.gradle.kts
└── settings.gradle.kts
├── README.md
├── .gitignore
├── test
└── widget_test.dart
├── lib
├── widgets
│ ├── container_sized.dart
│ ├── tabbar.dart
│ ├── snackbar.dart
│ ├── alert.dart
│ ├── rowscols.dart
│ ├── bottomSheet.dart
│ ├── image.dart
│ ├── dropdown.dart
│ ├── list_grid.dart
│ ├── dismissible.dart
│ ├── imagepicker.dart
│ ├── stack.dart
│ ├── button.dart
│ ├── animated_text.dart
│ ├── location.dart
│ ├── bottomnav.dart
│ ├── drawer.dart
│ ├── day19ui.dart
│ ├── form.dart
│ └── day20.dart
└── main.dart
├── analysis_options.yaml
├── .metadata
├── pubspec.yaml
└── pubspec.lock
/linux/.gitignore:
--------------------------------------------------------------------------------
1 | flutter/ephemeral
2 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/macos/Flutter/Flutter-Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "ephemeral/Flutter-Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/macos/Flutter/Flutter-Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "ephemeral/Flutter-Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/assets/dora1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/assets/dora1.jpg
--------------------------------------------------------------------------------
/assets/dora2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/assets/dora2.jpg
--------------------------------------------------------------------------------
/web/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/web/favicon.png
--------------------------------------------------------------------------------
/assets/madrid.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/assets/madrid.webp
--------------------------------------------------------------------------------
/assets/profile.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/assets/profile.jpg
--------------------------------------------------------------------------------
/assets/random.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/assets/random.jpeg
--------------------------------------------------------------------------------
/web/icons/Icon-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/web/icons/Icon-192.png
--------------------------------------------------------------------------------
/web/icons/Icon-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/web/icons/Icon-512.png
--------------------------------------------------------------------------------
/macos/Runner/Configs/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "../../Flutter/Flutter-Debug.xcconfig"
2 | #include "Warnings.xcconfig"
3 |
--------------------------------------------------------------------------------
/macos/Runner/Configs/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "../../Flutter/Flutter-Release.xcconfig"
2 | #include "Warnings.xcconfig"
3 |
--------------------------------------------------------------------------------
/web/icons/Icon-maskable-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/web/icons/Icon-maskable-192.png
--------------------------------------------------------------------------------
/web/icons/Icon-maskable-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/web/icons/Icon-maskable-512.png
--------------------------------------------------------------------------------
/macos/.gitignore:
--------------------------------------------------------------------------------
1 | # Flutter-related
2 | **/Flutter/ephemeral/
3 | **/Pods/
4 |
5 | # Xcode-related
6 | **/dgph
7 | **/xcuserdata/
8 |
--------------------------------------------------------------------------------
/windows/runner/resources/app_icon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/windows/runner/resources/app_icon.ico
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subhava06/Flutter-Learning/master/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/thirty_widgets/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.thirty_widgets
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity : FlutterActivity()
6 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/linux/runner/main.cc:
--------------------------------------------------------------------------------
1 | #include "my_application.h"
2 |
3 | int main(int argc, char** argv) {
4 | g_autoptr(MyApplication) app = my_application_new();
5 | return g_application_run(G_APPLICATION(app), argc, argv);
6 | }
7 |
--------------------------------------------------------------------------------
/macos/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | zipStoreBase=GRADLE_USER_HOME
4 | zipStorePath=wrapper/dists
5 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
6 |
--------------------------------------------------------------------------------
/macos/Runner/Release.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | com.apple.security.app-sandbox
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 | .cxx/
9 |
10 | # Remember to never publicly share your keystore.
11 | # See https://flutter.dev/to/reference-keystore
12 | key.properties
13 | **/*.keystore
14 | **/*.jks
15 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/RunnerTests/RunnerTests.swift:
--------------------------------------------------------------------------------
1 | import Flutter
2 | import UIKit
3 | import XCTest
4 |
5 | class RunnerTests: XCTestCase {
6 |
7 | func testExample() {
8 | // If you add code to the Runner application, consider adding tests here.
9 | // See https://developer.apple.com/documentation/xctest for more information about using XCTest.
10 | }
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/macos/RunnerTests/RunnerTests.swift:
--------------------------------------------------------------------------------
1 | import Cocoa
2 | import FlutterMacOS
3 | import XCTest
4 |
5 | class RunnerTests: XCTestCase {
6 |
7 | func testExample() {
8 | // If you add code to the Runner application, consider adding tests here.
9 | // See https://developer.apple.com/documentation/xctest for more information about using XCTest.
10 | }
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/windows/.gitignore:
--------------------------------------------------------------------------------
1 | flutter/ephemeral/
2 |
3 | # Visual Studio user-specific files.
4 | *.suo
5 | *.user
6 | *.userosscache
7 | *.sln.docstates
8 |
9 | # Visual Studio build-related files.
10 | x64/
11 | x86/
12 |
13 | # Visual Studio cache files
14 | # files ending in .cache can be ignored
15 | *.[Cc]ache
16 | # but keep track of directories ending in .cache
17 | !*.[Cc]ache/
18 |
--------------------------------------------------------------------------------
/macos/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import Cocoa
2 | import FlutterMacOS
3 |
4 | @main
5 | class AppDelegate: FlutterAppDelegate {
6 | override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
7 | return true
8 | }
9 |
10 | override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool {
11 | return true
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/linux/flutter/generated_plugin_registrant.h:
--------------------------------------------------------------------------------
1 | //
2 | // Generated file. Do not edit.
3 | //
4 |
5 | // clang-format off
6 |
7 | #ifndef GENERATED_PLUGIN_REGISTRANT_
8 | #define GENERATED_PLUGIN_REGISTRANT_
9 |
10 | #include
11 |
12 | // Registers Flutter plugins.
13 | void fl_register_plugins(FlPluginRegistry* registry);
14 |
15 | #endif // GENERATED_PLUGIN_REGISTRANT_
16 |
--------------------------------------------------------------------------------
/windows/flutter/generated_plugin_registrant.h:
--------------------------------------------------------------------------------
1 | //
2 | // Generated file. Do not edit.
3 | //
4 |
5 | // clang-format off
6 |
7 | #ifndef GENERATED_PLUGIN_REGISTRANT_
8 | #define GENERATED_PLUGIN_REGISTRANT_
9 |
10 | #include
11 |
12 | // Registers Flutter plugins.
13 | void RegisterPlugins(flutter::PluginRegistry* registry);
14 |
15 | #endif // GENERATED_PLUGIN_REGISTRANT_
16 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/macos/Runner/DebugProfile.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | com.apple.security.app-sandbox
6 |
7 | com.apple.security.cs.allow-jit
8 |
9 | com.apple.security.network.server
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import Flutter
2 | import UIKit
3 |
4 | @main
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/macos/Runner/MainFlutterWindow.swift:
--------------------------------------------------------------------------------
1 | import Cocoa
2 | import FlutterMacOS
3 |
4 | class MainFlutterWindow: NSWindow {
5 | override func awakeFromNib() {
6 | let flutterViewController = FlutterViewController()
7 | let windowFrame = self.frame
8 | self.contentViewController = flutterViewController
9 | self.setFrame(windowFrame, display: true)
10 |
11 | RegisterGeneratedPlugins(registry: flutterViewController)
12 |
13 | super.awakeFromNib()
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/linux/runner/my_application.h:
--------------------------------------------------------------------------------
1 | #ifndef FLUTTER_MY_APPLICATION_H_
2 | #define FLUTTER_MY_APPLICATION_H_
3 |
4 | #include
5 |
6 | G_DECLARE_FINAL_TYPE(MyApplication, my_application, MY, APPLICATION,
7 | GtkApplication)
8 |
9 | /**
10 | * my_application_new:
11 | *
12 | * Creates a new Flutter-based application.
13 | *
14 | * Returns: a new #MyApplication.
15 | */
16 | MyApplication* my_application_new();
17 |
18 | #endif // FLUTTER_MY_APPLICATION_H_
19 |
--------------------------------------------------------------------------------
/windows/runner/resource.h:
--------------------------------------------------------------------------------
1 | //{{NO_DEPENDENCIES}}
2 | // Microsoft Visual C++ generated include file.
3 | // Used by Runner.rc
4 | //
5 | #define IDI_APP_ICON 101
6 |
7 | // Next default values for new objects
8 | //
9 | #ifdef APSTUDIO_INVOKED
10 | #ifndef APSTUDIO_READONLY_SYMBOLS
11 | #define _APS_NEXT_RESOURCE_VALUE 102
12 | #define _APS_NEXT_COMMAND_VALUE 40001
13 | #define _APS_NEXT_CONTROL_VALUE 1001
14 | #define _APS_NEXT_SYMED_VALUE 101
15 | #endif
16 | #endif
17 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/linux/flutter/generated_plugin_registrant.cc:
--------------------------------------------------------------------------------
1 | //
2 | // Generated file. Do not edit.
3 | //
4 |
5 | // clang-format off
6 |
7 | #include "generated_plugin_registrant.h"
8 |
9 | #include
10 |
11 | void fl_register_plugins(FlPluginRegistry* registry) {
12 | g_autoptr(FlPluginRegistrar) file_selector_linux_registrar =
13 | fl_plugin_registry_get_registrar_for_plugin(registry, "FileSelectorPlugin");
14 | file_selector_plugin_register_with_registrar(file_selector_linux_registrar);
15 | }
16 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/windows/flutter/generated_plugin_registrant.cc:
--------------------------------------------------------------------------------
1 | //
2 | // Generated file. Do not edit.
3 | //
4 |
5 | // clang-format off
6 |
7 | #include "generated_plugin_registrant.h"
8 |
9 | #include
10 | #include
11 |
12 | void RegisterPlugins(flutter::PluginRegistry* registry) {
13 | FileSelectorWindowsRegisterWithRegistrar(
14 | registry->GetRegistrarForPlugin("FileSelectorWindows"));
15 | GeolocatorWindowsRegisterWithRegistrar(
16 | registry->GetRegistrarForPlugin("GeolocatorWindows"));
17 | }
18 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # thirty_widgets
2 |
3 | A new Flutter project.
4 |
5 | ## Getting Started
6 |
7 | This project is a starting point for a Flutter application.
8 |
9 | A few resources to get you started if this is your first Flutter project:
10 |
11 | - [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
12 | - [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
13 |
14 | For help getting started with Flutter development, view the
15 | [online documentation](https://docs.flutter.dev/), which offers tutorials,
16 | samples, guidance on mobile development, and a full API reference.
17 |
--------------------------------------------------------------------------------
/android/build.gradle.kts:
--------------------------------------------------------------------------------
1 | allprojects {
2 | repositories {
3 | google()
4 | mavenCentral()
5 | }
6 | }
7 |
8 | val newBuildDir: Directory = rootProject.layout.buildDirectory.dir("../../build").get()
9 | rootProject.layout.buildDirectory.value(newBuildDir)
10 |
11 | subprojects {
12 | val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name)
13 | project.layout.buildDirectory.value(newSubprojectBuildDir)
14 | }
15 | subprojects {
16 | project.evaluationDependsOn(":app")
17 | }
18 |
19 | tasks.register("clean") {
20 | delete(rootProject.layout.buildDirectory)
21 | }
22 |
--------------------------------------------------------------------------------
/macos/Runner/Configs/Warnings.xcconfig:
--------------------------------------------------------------------------------
1 | WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings
2 | GCC_WARN_UNDECLARED_SELECTOR = YES
3 | CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES
4 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE
5 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES
6 | CLANG_WARN_PRAGMA_PACK = YES
7 | CLANG_WARN_STRICT_PROTOTYPES = YES
8 | CLANG_WARN_COMMA = YES
9 | GCC_WARN_STRICT_SELECTOR_MATCH = YES
10 | CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES
11 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES
12 | GCC_WARN_SHADOW = YES
13 | CLANG_WARN_UNREACHABLE_CODE = YES
14 |
--------------------------------------------------------------------------------
/windows/runner/runner.exe.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PerMonitorV2
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/macos/Runner/Configs/AppInfo.xcconfig:
--------------------------------------------------------------------------------
1 | // Application-level settings for the Runner target.
2 | //
3 | // This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the
4 | // future. If not, the values below would default to using the project name when this becomes a
5 | // 'flutter create' template.
6 |
7 | // The application's name. By default this is also the title of the Flutter window.
8 | PRODUCT_NAME = thirty_widgets
9 |
10 | // The application's bundle identifier
11 | PRODUCT_BUNDLE_IDENTIFIER = com.example.thirtyWidgets
12 |
13 | // The copyright displayed in application information
14 | PRODUCT_COPYRIGHT = Copyright © 2025 com.example. All rights reserved.
15 |
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | **/dgph
2 | *.mode1v3
3 | *.mode2v3
4 | *.moved-aside
5 | *.pbxuser
6 | *.perspectivev3
7 | **/*sync/
8 | .sconsign.dblite
9 | .tags*
10 | **/.vagrant/
11 | **/DerivedData/
12 | Icon?
13 | **/Pods/
14 | **/.symlinks/
15 | profile
16 | xcuserdata
17 | **/.generated/
18 | Flutter/App.framework
19 | Flutter/Flutter.framework
20 | Flutter/Flutter.podspec
21 | Flutter/Generated.xcconfig
22 | Flutter/ephemeral/
23 | Flutter/app.flx
24 | Flutter/app.zip
25 | Flutter/flutter_assets/
26 | Flutter/flutter_export_environment.sh
27 | ServiceDefinitions.json
28 | Runner/GeneratedPluginRegistrant.*
29 |
30 | # Exceptions to above rules.
31 | !default.mode1v3
32 | !default.mode2v3
33 | !default.pbxuser
34 | !default.perspectivev3
35 |
--------------------------------------------------------------------------------
/windows/runner/utils.h:
--------------------------------------------------------------------------------
1 | #ifndef RUNNER_UTILS_H_
2 | #define RUNNER_UTILS_H_
3 |
4 | #include
5 | #include
6 |
7 | // Creates a console for the process, and redirects stdout and stderr to
8 | // it for both the runner and the Flutter library.
9 | void CreateAndAttachConsole();
10 |
11 | // Takes a null-terminated wchar_t* encoded in UTF-16 and returns a std::string
12 | // encoded in UTF-8. Returns an empty std::string on failure.
13 | std::string Utf8FromUtf16(const wchar_t* utf16_string);
14 |
15 | // Gets the command line arguments passed in as a std::vector,
16 | // encoded in UTF-8. Returns an empty std::vector on failure.
17 | std::vector GetCommandLineArguments();
18 |
19 | #endif // RUNNER_UTILS_H_
20 |
--------------------------------------------------------------------------------
/macos/Flutter/GeneratedPluginRegistrant.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Generated file. Do not edit.
3 | //
4 |
5 | import FlutterMacOS
6 | import Foundation
7 |
8 | import file_selector_macos
9 | import geolocator_apple
10 | import location
11 | import path_provider_foundation
12 | import sqflite_darwin
13 |
14 | func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
15 | FileSelectorPlugin.register(with: registry.registrar(forPlugin: "FileSelectorPlugin"))
16 | GeolocatorPlugin.register(with: registry.registrar(forPlugin: "GeolocatorPlugin"))
17 | LocationPlugin.register(with: registry.registrar(forPlugin: "LocationPlugin"))
18 | PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
19 | SqflitePlugin.register(with: registry.registrar(forPlugin: "SqflitePlugin"))
20 | }
21 |
--------------------------------------------------------------------------------
/android/settings.gradle.kts:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | val flutterSdkPath = run {
3 | val properties = java.util.Properties()
4 | file("local.properties").inputStream().use { properties.load(it) }
5 | val flutterSdkPath = properties.getProperty("flutter.sdk")
6 | require(flutterSdkPath != null) { "flutter.sdk not set in local.properties" }
7 | flutterSdkPath
8 | }
9 |
10 | includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
11 |
12 | repositories {
13 | google()
14 | mavenCentral()
15 | gradlePluginPortal()
16 | }
17 | }
18 |
19 | plugins {
20 | id("dev.flutter.flutter-plugin-loader") version "1.0.0"
21 | id("com.android.application") version "8.7.0" apply false
22 | id("org.jetbrains.kotlin.android") version "1.8.22" apply false
23 | }
24 |
25 | include(":app")
26 |
--------------------------------------------------------------------------------
/linux/flutter/generated_plugins.cmake:
--------------------------------------------------------------------------------
1 | #
2 | # Generated file, do not edit.
3 | #
4 |
5 | list(APPEND FLUTTER_PLUGIN_LIST
6 | file_selector_linux
7 | )
8 |
9 | list(APPEND FLUTTER_FFI_PLUGIN_LIST
10 | )
11 |
12 | set(PLUGIN_BUNDLED_LIBRARIES)
13 |
14 | foreach(plugin ${FLUTTER_PLUGIN_LIST})
15 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/linux plugins/${plugin})
16 | target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin)
17 | list(APPEND PLUGIN_BUNDLED_LIBRARIES $)
18 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
19 | endforeach(plugin)
20 |
21 | foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})
22 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin})
23 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})
24 | endforeach(ffi_plugin)
25 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 12.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .build/
9 | .buildlog/
10 | .history
11 | .svn/
12 | .swiftpm/
13 | migrate_working_dir/
14 |
15 | # IntelliJ related
16 | *.iml
17 | *.ipr
18 | *.iws
19 | .idea/
20 |
21 | # The .vscode folder contains launch configuration and tasks you configure in
22 | # VS Code which you may wish to be included in version control, so this line
23 | # is commented out by default.
24 | #.vscode/
25 |
26 | # Flutter/Dart/Pub related
27 | **/doc/api/
28 | **/ios/Flutter/.last_build_id
29 | .dart_tool/
30 | .flutter-plugins
31 | .flutter-plugins-dependencies
32 | .pub-cache/
33 | .pub/
34 | /build/
35 |
36 | # Symbolication related
37 | app.*.symbols
38 |
39 | # Obfuscation related
40 | app.*.map.json
41 |
42 | # Android Studio will place build artifacts here
43 | /android/app/debug
44 | /android/app/profile
45 | /android/app/release
46 |
--------------------------------------------------------------------------------
/windows/flutter/generated_plugins.cmake:
--------------------------------------------------------------------------------
1 | #
2 | # Generated file, do not edit.
3 | #
4 |
5 | list(APPEND FLUTTER_PLUGIN_LIST
6 | file_selector_windows
7 | geolocator_windows
8 | )
9 |
10 | list(APPEND FLUTTER_FFI_PLUGIN_LIST
11 | )
12 |
13 | set(PLUGIN_BUNDLED_LIBRARIES)
14 |
15 | foreach(plugin ${FLUTTER_PLUGIN_LIST})
16 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/windows plugins/${plugin})
17 | target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin)
18 | list(APPEND PLUGIN_BUNDLED_LIBRARIES $)
19 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
20 | endforeach(plugin)
21 |
22 | foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})
23 | add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/windows plugins/${ffi_plugin})
24 | list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})
25 | endforeach(ffi_plugin)
26 |
--------------------------------------------------------------------------------
/web/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "thirty_widgets",
3 | "short_name": "thirty_widgets",
4 | "start_url": ".",
5 | "display": "standalone",
6 | "background_color": "#0175C2",
7 | "theme_color": "#0175C2",
8 | "description": "A new Flutter project.",
9 | "orientation": "portrait-primary",
10 | "prefer_related_applications": false,
11 | "icons": [
12 | {
13 | "src": "icons/Icon-192.png",
14 | "sizes": "192x192",
15 | "type": "image/png"
16 | },
17 | {
18 | "src": "icons/Icon-512.png",
19 | "sizes": "512x512",
20 | "type": "image/png"
21 | },
22 | {
23 | "src": "icons/Icon-maskable-192.png",
24 | "sizes": "192x192",
25 | "type": "image/png",
26 | "purpose": "maskable"
27 | },
28 | {
29 | "src": "icons/Icon-maskable-512.png",
30 | "sizes": "512x512",
31 | "type": "image/png",
32 | "purpose": "maskable"
33 | }
34 | ]
35 | }
36 |
--------------------------------------------------------------------------------
/windows/runner/flutter_window.h:
--------------------------------------------------------------------------------
1 | #ifndef RUNNER_FLUTTER_WINDOW_H_
2 | #define RUNNER_FLUTTER_WINDOW_H_
3 |
4 | #include
5 | #include
6 |
7 | #include
8 |
9 | #include "win32_window.h"
10 |
11 | // A window that does nothing but host a Flutter view.
12 | class FlutterWindow : public Win32Window {
13 | public:
14 | // Creates a new FlutterWindow hosting a Flutter view running |project|.
15 | explicit FlutterWindow(const flutter::DartProject& project);
16 | virtual ~FlutterWindow();
17 |
18 | protected:
19 | // Win32Window:
20 | bool OnCreate() override;
21 | void OnDestroy() override;
22 | LRESULT MessageHandler(HWND window, UINT const message, WPARAM const wparam,
23 | LPARAM const lparam) noexcept override;
24 |
25 | private:
26 | // The project to run.
27 | flutter::DartProject project_;
28 |
29 | // The Flutter instance hosted by this window.
30 | std::unique_ptr flutter_controller_;
31 | };
32 |
33 | #endif // RUNNER_FLUTTER_WINDOW_H_
34 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/linux/runner/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | cmake_minimum_required(VERSION 3.13)
2 | project(runner LANGUAGES CXX)
3 |
4 | # Define the application target. To change its name, change BINARY_NAME in the
5 | # top-level CMakeLists.txt, not the value here, or `flutter run` will no longer
6 | # work.
7 | #
8 | # Any new source files that you add to the application should be added here.
9 | add_executable(${BINARY_NAME}
10 | "main.cc"
11 | "my_application.cc"
12 | "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc"
13 | )
14 |
15 | # Apply the standard set of build settings. This can be removed for applications
16 | # that need different build settings.
17 | apply_standard_settings(${BINARY_NAME})
18 |
19 | # Add preprocessor definitions for the application ID.
20 | add_definitions(-DAPPLICATION_ID="${APPLICATION_ID}")
21 |
22 | # Add dependency libraries. Add any application-specific dependencies here.
23 | target_link_libraries(${BINARY_NAME} PRIVATE flutter)
24 | target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK)
25 |
26 | target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}")
27 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/test/widget_test.dart:
--------------------------------------------------------------------------------
1 | // This is a basic Flutter widget test.
2 | //
3 | // To perform an interaction with a widget in your test, use the WidgetTester
4 | // utility in the flutter_test package. For example, you can send tap and scroll
5 | // gestures. You can also use WidgetTester to find child widgets in the widget
6 | // tree, read text, and verify that the values of widget properties are correct.
7 |
8 | import 'package:flutter/material.dart';
9 | import 'package:flutter_test/flutter_test.dart';
10 |
11 | import 'package:thirty_widgets/main.dart';
12 |
13 | void main() {
14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async {
15 | // Build our app and trigger a frame.
16 | await tester.pumpWidget(const MyApp());
17 |
18 | // Verify that our counter starts at 0.
19 | expect(find.text('0'), findsOneWidget);
20 | expect(find.text('1'), findsNothing);
21 |
22 | // Tap the '+' icon and trigger a frame.
23 | await tester.tap(find.byIcon(Icons.add));
24 | await tester.pump();
25 |
26 | // Verify that our counter has incremented.
27 | expect(find.text('0'), findsNothing);
28 | expect(find.text('1'), findsOneWidget);
29 | });
30 | }
31 |
--------------------------------------------------------------------------------
/macos/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIconFile
10 |
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | $(PRODUCT_NAME)
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | $(FLUTTER_BUILD_NAME)
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSMinimumSystemVersion
24 | $(MACOSX_DEPLOYMENT_TARGET)
25 | NSHumanReadableCopyright
26 | $(PRODUCT_COPYRIGHT)
27 | NSMainNibFile
28 | MainMenu
29 | NSPrincipalClass
30 | NSApplication
31 |
32 |
33 |
--------------------------------------------------------------------------------
/web/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 | thirty_widgets
33 |
34 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/windows/runner/main.cpp:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 | #include
4 |
5 | #include "flutter_window.h"
6 | #include "utils.h"
7 |
8 | int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
9 | _In_ wchar_t *command_line, _In_ int show_command) {
10 | // Attach to console when present (e.g., 'flutter run') or create a
11 | // new console when running with a debugger.
12 | if (!::AttachConsole(ATTACH_PARENT_PROCESS) && ::IsDebuggerPresent()) {
13 | CreateAndAttachConsole();
14 | }
15 |
16 | // Initialize COM, so that it is available for use in the library and/or
17 | // plugins.
18 | ::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED);
19 |
20 | flutter::DartProject project(L"data");
21 |
22 | std::vector command_line_arguments =
23 | GetCommandLineArguments();
24 |
25 | project.set_dart_entrypoint_arguments(std::move(command_line_arguments));
26 |
27 | FlutterWindow window(project);
28 | Win32Window::Point origin(10, 10);
29 | Win32Window::Size size(1280, 720);
30 | if (!window.Create(L"thirty_widgets", origin, size)) {
31 | return EXIT_FAILURE;
32 | }
33 | window.SetQuitOnClose(true);
34 |
35 | ::MSG msg;
36 | while (::GetMessage(&msg, nullptr, 0, 0)) {
37 | ::TranslateMessage(&msg);
38 | ::DispatchMessage(&msg);
39 | }
40 |
41 | ::CoUninitialize();
42 | return EXIT_SUCCESS;
43 | }
44 |
--------------------------------------------------------------------------------
/lib/widgets/container_sized.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 |
4 |
5 | class Container_Sized extends StatelessWidget {
6 | const Container_Sized({super.key});
7 |
8 | @override
9 | Widget build(BuildContext context) {
10 | return Scaffold(
11 | backgroundColor: Colors.indigoAccent,
12 | appBar: AppBar(
13 | //backgroundColor: Colors.deepOrange,
14 | title: const Center(child: Text('Container and sized box'))),
15 | body: Center(
16 | child: Container(
17 | padding: EdgeInsets.all(10),
18 | //color: Colors.blue,
19 | height: 150,
20 | width: 150,
21 | decoration: BoxDecoration(color: Colors.deepPurpleAccent, borderRadius: BorderRadius.only(
22 | topLeft: Radius.circular(20),
23 | bottomRight: Radius.circular(20)),
24 | boxShadow: [BoxShadow (
25 | blurRadius: 20,
26 | spreadRadius: 5,
27 | color: Colors.grey,
28 | )
29 |
30 | ] ),
31 |
32 | child: Center(
33 | child: Container(margin:EdgeInsets.all(10),color: Colors.red),
34 | // Text('Hello',style: TextStyle(color:Colors.black, fontSize: 20),
35 | ),
36 | ),
37 | ),
38 | );
39 |
40 |
41 | //SizedBox(height: 100, width: 50, child: Text('Hello'),
42 |
43 |
44 |
45 | }
46 | }
--------------------------------------------------------------------------------
/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | # This file configures the analyzer, which statically analyzes Dart code to
2 | # check for errors, warnings, and lints.
3 | #
4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6 | # invoked from the command line by running `flutter analyze`.
7 |
8 | # The following line activates a set of recommended lints for Flutter apps,
9 | # packages, and plugins designed to encourage good coding practices.
10 | include: package:flutter_lints/flutter.yaml
11 |
12 | linter:
13 | # The lint rules applied to this project can be customized in the
14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml`
15 | # included above or to enable additional rules. A list of all available lints
16 | # and their documentation is published at https://dart.dev/lints.
17 | #
18 | # Instead of disabling a lint rule for the entire project in the
19 | # section below, it can also be suppressed for a single line of code
20 | # or a specific dart file by using the `// ignore: name_of_lint` and
21 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file
22 | # producing the lint.
23 | rules:
24 | # avoid_print: false # Uncomment to disable the `avoid_print` rule
25 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
26 |
27 | # Additional information about this file can be found at
28 | # https://dart.dev/guides/language/analysis-options
29 |
--------------------------------------------------------------------------------
/lib/widgets/tabbar.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:thirty_widgets/widgets/animated_text.dart';
3 | import 'package:thirty_widgets/widgets/bottomnav.dart';
4 | import 'package:thirty_widgets/widgets/button.dart';
5 | import 'package:thirty_widgets/widgets/drawer.dart';
6 |
7 | class TabBarWidget extends StatefulWidget {
8 | const TabBarWidget({super.key});
9 |
10 | @override
11 | State createState() => _TabBarWidgetState();
12 | }
13 |
14 | class _TabBarWidgetState extends State {
15 |
16 | @override
17 | Widget build(BuildContext context) {
18 | return DefaultTabController(
19 | initialIndex: 0,
20 | length: 4,
21 | child: Scaffold(
22 | appBar: AppBar(
23 | title: Text('Whatsapp'),
24 | bottom:
25 | TabBar(
26 | indicatorColor: Colors.grey,
27 | tabs: [
28 | Tab(icon: Icon(Icons.chat),text: 'Chats',),
29 | Tab(icon: Icon(Icons.notifications),text: 'Status',),
30 | Tab(icon: Icon(Icons.call),text: 'Calls',),
31 | Tab(icon: Icon(Icons.settings),text: 'Settings',),
32 | ],
33 | ),
34 | ),
35 | body: TabBarView(
36 | children: [
37 | AnimatedTextWidget(),
38 | buttonWidget(),
39 | DrawerWidget(),
40 | BottomNav(),
41 | ]),
42 |
43 |
44 |
45 |
46 | )
47 | );
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/lib/widgets/snackbar.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class SnackbarWidget extends StatelessWidget {
4 | const SnackbarWidget({super.key});
5 |
6 | @override
7 | Widget build(BuildContext context) {
8 | return Scaffold(
9 | appBar: AppBar(
10 | title: Text("Learning Snackbar Widget"),
11 | centerTitle: true, // Correct way to center the title
12 | backgroundColor: Colors.redAccent,
13 | ),
14 | body: Center(
15 | child: ElevatedButton(
16 | onPressed: () {
17 | final snackBar = SnackBar(
18 | action: SnackBarAction(label: 'Undo', // displays a button inside the snackbar
19 | onPressed: (){},
20 | textColor: Colors.black,
21 | ),
22 | shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(20 )),
23 | // padding: EdgeInsets.all(20),
24 | behavior: SnackBarBehavior.floating,
25 | backgroundColor: Colors.grey,
26 | duration: const Duration(milliseconds: 1000),
27 | content: Center(
28 | child: Text('This is an error',
29 | style: TextStyle(fontWeight: FontWeight.bold, color: Colors.red,fontStyle: FontStyle.italic,fontSize: 20)),
30 | ));
31 |
32 | // Correct placement of showSnackBar
33 | ScaffoldMessenger.of(context).showSnackBar(snackBar);
34 | },
35 | child: Text('Show Snackbar'),
36 | ),
37 | ),
38 | );
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/android/app/build.gradle.kts:
--------------------------------------------------------------------------------
1 | plugins {
2 | id("com.android.application")
3 | id("kotlin-android")
4 | // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
5 | id("dev.flutter.flutter-gradle-plugin")
6 | }
7 |
8 | android {
9 | namespace = "com.example.thirty_widgets"
10 | compileSdk = flutter.compileSdkVersion
11 | ndkVersion = "27.0.12077973"
12 |
13 | compileOptions {
14 | sourceCompatibility = JavaVersion.VERSION_11
15 | targetCompatibility = JavaVersion.VERSION_11
16 | }
17 |
18 | kotlinOptions {
19 | jvmTarget = JavaVersion.VERSION_11.toString()
20 | }
21 |
22 | defaultConfig {
23 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
24 | applicationId = "com.example.thirty_widgets"
25 | // You can update the following values to match your application needs.
26 | // For more information, see: https://flutter.dev/to/review-gradle-config.
27 | minSdk = flutter.minSdkVersion
28 | targetSdk = flutter.targetSdkVersion
29 | versionCode = flutter.versionCode
30 | versionName = flutter.versionName
31 | }
32 |
33 | buildTypes {
34 | release {
35 | // TODO: Add your own signing config for the release build.
36 | // Signing with the debug keys for now, so `flutter run --release` works.
37 | signingConfig = signingConfigs.getByName("debug")
38 | }
39 | }
40 | }
41 |
42 | flutter {
43 | source = "../.."
44 | }
45 |
--------------------------------------------------------------------------------
/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "16x16",
5 | "idiom" : "mac",
6 | "filename" : "app_icon_16.png",
7 | "scale" : "1x"
8 | },
9 | {
10 | "size" : "16x16",
11 | "idiom" : "mac",
12 | "filename" : "app_icon_32.png",
13 | "scale" : "2x"
14 | },
15 | {
16 | "size" : "32x32",
17 | "idiom" : "mac",
18 | "filename" : "app_icon_32.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "32x32",
23 | "idiom" : "mac",
24 | "filename" : "app_icon_64.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "128x128",
29 | "idiom" : "mac",
30 | "filename" : "app_icon_128.png",
31 | "scale" : "1x"
32 | },
33 | {
34 | "size" : "128x128",
35 | "idiom" : "mac",
36 | "filename" : "app_icon_256.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "256x256",
41 | "idiom" : "mac",
42 | "filename" : "app_icon_256.png",
43 | "scale" : "1x"
44 | },
45 | {
46 | "size" : "256x256",
47 | "idiom" : "mac",
48 | "filename" : "app_icon_512.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "512x512",
53 | "idiom" : "mac",
54 | "filename" : "app_icon_512.png",
55 | "scale" : "1x"
56 | },
57 | {
58 | "size" : "512x512",
59 | "idiom" : "mac",
60 | "filename" : "app_icon_1024.png",
61 | "scale" : "2x"
62 | }
63 | ],
64 | "info" : {
65 | "version" : 1,
66 | "author" : "xcode"
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:thirty_widgets/widgets/alert.dart';
3 | import 'package:thirty_widgets/widgets/animated_text.dart';
4 | import 'package:thirty_widgets/widgets/button.dart';
5 | import 'package:thirty_widgets/widgets/container_sized.dart';
6 | import 'package:thirty_widgets/widgets/day19ui.dart';
7 | import 'package:thirty_widgets/widgets/day20.dart';
8 | import 'package:thirty_widgets/widgets/dismissible.dart';
9 | import 'package:thirty_widgets/widgets/dropdown.dart';
10 | import 'package:thirty_widgets/widgets/imagepicker.dart';
11 | import 'package:thirty_widgets/widgets/list_grid.dart';
12 | import 'package:thirty_widgets/widgets/location.dart';
13 | import 'package:thirty_widgets/widgets/rowscols.dart';
14 | import 'package:thirty_widgets/widgets/snackbar.dart';
15 | import 'package:thirty_widgets/widgets/drawer.dart';
16 | import 'package:thirty_widgets/widgets/image.dart';
17 | import 'package:thirty_widgets/widgets/bottomSheet.dart';
18 | import 'package:thirty_widgets/widgets/bottomnav.dart';
19 | import 'package:thirty_widgets/widgets/form.dart';
20 | import 'package:thirty_widgets/widgets/stack.dart';
21 | import 'package:thirty_widgets/widgets/tabbar.dart';
22 | void main() => runApp(const MyApp());
23 |
24 | class MyApp extends StatelessWidget {
25 | const MyApp({super.key});
26 |
27 | @override
28 | Widget build(BuildContext context) {
29 | return MaterialApp(
30 | debugShowCheckedModeBanner: false,
31 | theme: ThemeData(
32 | brightness: Brightness.dark,
33 | primaryColor: Colors.orange,
34 | // colorScheme: ColorScheme.white(primary: Colors.orange),//updated way to apply primary color
35 | ),
36 | home: Day20(),
37 | );
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/lib/widgets/alert.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class AlertWidget extends StatelessWidget {
4 | const AlertWidget({super.key});
5 |
6 | @override
7 | Widget build(BuildContext context) {
8 | return Scaffold(
9 | appBar: AppBar(
10 | title: Text('Alert Dialog',
11 | style: TextStyle(color: Colors.black45,fontWeight: FontWeight.bold,)),
12 | centerTitle: true,
13 | backgroundColor: Colors.cyan,),
14 | body: Center(
15 | child: ElevatedButton(onPressed: (){
16 | showMyDialog(context);
17 | }, child: Text('Show Alert')),
18 | )
19 | );
20 | }
21 | }
22 |
23 | Future showMyDialog(BuildContext context)async {
24 | return showDialog(context: context,
25 | builder: (BuildContext context)
26 | {
27 | return AlertDialog(
28 | elevation: 0,
29 | backgroundColor: Colors.brown,
30 | // scrollable: true,//when the content is more than the height, make it true
31 | shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(20)),
32 | title: Text('This is an alert'),
33 | content: SingleChildScrollView( // this gives appropriate size to the the dialog box to adjust acc to the content
34 | child: ListBody( // A column-like widget that arranges its children (texts) vertically.
35 | children: [
36 | Text('This is a demo'),
37 | Text('This is Subhava Ojha'),
38 | ],
39 | ),
40 | ),
41 | actions: [
42 | TextButton(onPressed: (){}, child: Text('Approve')),
43 | TextButton(onPressed: (){
44 | Navigator.pop(context); // on clicking cancel, it closes the dialog box
45 | }, child: Text('Cancel')),
46 | ],
47 | );
48 | });
49 | }
50 |
51 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleDisplayName
8 | Thirty Widgets
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | thirty_widgets
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | $(FLUTTER_BUILD_NAME)
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | $(FLUTTER_BUILD_NUMBER)
25 | LSRequiresIPhoneOS
26 |
27 | UILaunchStoryboardName
28 | LaunchScreen
29 | UIMainStoryboardFile
30 | Main
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UISupportedInterfaceOrientations~ipad
38 |
39 | UIInterfaceOrientationPortrait
40 | UIInterfaceOrientationPortraitUpsideDown
41 | UIInterfaceOrientationLandscapeLeft
42 | UIInterfaceOrientationLandscapeRight
43 |
44 | CADisableMinimumFrameDurationOnPhone
45 |
46 | UIApplicationSupportsIndirectInputEvents
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled and should not be manually edited.
5 |
6 | version:
7 | revision: "35c388afb57ef061d06a39b537336c87e0e3d1b1"
8 | channel: "stable"
9 |
10 | project_type: app
11 |
12 | # Tracks metadata for the flutter migrate command
13 | migration:
14 | platforms:
15 | - platform: root
16 | create_revision: 35c388afb57ef061d06a39b537336c87e0e3d1b1
17 | base_revision: 35c388afb57ef061d06a39b537336c87e0e3d1b1
18 | - platform: android
19 | create_revision: 35c388afb57ef061d06a39b537336c87e0e3d1b1
20 | base_revision: 35c388afb57ef061d06a39b537336c87e0e3d1b1
21 | - platform: ios
22 | create_revision: 35c388afb57ef061d06a39b537336c87e0e3d1b1
23 | base_revision: 35c388afb57ef061d06a39b537336c87e0e3d1b1
24 | - platform: linux
25 | create_revision: 35c388afb57ef061d06a39b537336c87e0e3d1b1
26 | base_revision: 35c388afb57ef061d06a39b537336c87e0e3d1b1
27 | - platform: macos
28 | create_revision: 35c388afb57ef061d06a39b537336c87e0e3d1b1
29 | base_revision: 35c388afb57ef061d06a39b537336c87e0e3d1b1
30 | - platform: web
31 | create_revision: 35c388afb57ef061d06a39b537336c87e0e3d1b1
32 | base_revision: 35c388afb57ef061d06a39b537336c87e0e3d1b1
33 | - platform: windows
34 | create_revision: 35c388afb57ef061d06a39b537336c87e0e3d1b1
35 | base_revision: 35c388afb57ef061d06a39b537336c87e0e3d1b1
36 |
37 | # User provided section
38 |
39 | # List of Local paths (relative to this file) that should be
40 | # ignored by the migrate tool.
41 | #
42 | # Files that are not part of the templates will be ignored by default.
43 | unmanaged_files:
44 | - 'lib/main.dart'
45 | - 'ios/Runner.xcodeproj/project.pbxproj'
46 |
--------------------------------------------------------------------------------
/windows/runner/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | cmake_minimum_required(VERSION 3.14)
2 | project(runner LANGUAGES CXX)
3 |
4 | # Define the application target. To change its name, change BINARY_NAME in the
5 | # top-level CMakeLists.txt, not the value here, or `flutter run` will no longer
6 | # work.
7 | #
8 | # Any new source files that you add to the application should be added here.
9 | add_executable(${BINARY_NAME} WIN32
10 | "flutter_window.cpp"
11 | "main.cpp"
12 | "utils.cpp"
13 | "win32_window.cpp"
14 | "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc"
15 | "Runner.rc"
16 | "runner.exe.manifest"
17 | )
18 |
19 | # Apply the standard set of build settings. This can be removed for applications
20 | # that need different build settings.
21 | apply_standard_settings(${BINARY_NAME})
22 |
23 | # Add preprocessor definitions for the build version.
24 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION=\"${FLUTTER_VERSION}\"")
25 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MAJOR=${FLUTTER_VERSION_MAJOR}")
26 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MINOR=${FLUTTER_VERSION_MINOR}")
27 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_PATCH=${FLUTTER_VERSION_PATCH}")
28 | target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_BUILD=${FLUTTER_VERSION_BUILD}")
29 |
30 | # Disable Windows macros that collide with C++ standard library functions.
31 | target_compile_definitions(${BINARY_NAME} PRIVATE "NOMINMAX")
32 |
33 | # Add dependency libraries and include directories. Add any application-specific
34 | # dependencies here.
35 | target_link_libraries(${BINARY_NAME} PRIVATE flutter flutter_wrapper_app)
36 | target_link_libraries(${BINARY_NAME} PRIVATE "dwmapi.lib")
37 | target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}")
38 |
39 | # Run the Flutter tool portions of the build. This must not be removed.
40 | add_dependencies(${BINARY_NAME} flutter_assemble)
41 |
--------------------------------------------------------------------------------
/lib/widgets/rowscols.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class RowsCols extends StatelessWidget {
4 | const RowsCols({super.key});
5 |
6 | @override
7 | Widget build(BuildContext context) {
8 | var w = MediaQuery.of(context).size.width;
9 | var h = MediaQuery.of(context).size.height;
10 | return Scaffold(
11 | appBar: AppBar(
12 | title: Center(child: Text("Rows and Columns")),
13 | ) ,
14 | body: Container(
15 | width: w,
16 | height: h,
17 | color: Colors.yellow,
18 | child: /*Wrap(
19 | direction: Axis.vertical,
20 | alignment: WrapAlignment.spaceEvenly,
21 | // mainAxisAlignment: MainAxisAlignment.start,
22 | // crossAxisAlignment: CrossAxisAlignment.center,
23 | children: [
24 | // Text("hsdiofhdoifnsdoincvosdnvsoinsdivnsdindndvoinvoivnsdosdpvso"),
25 | Container(height: 60, width:50, color: Colors.red),
26 | Container(height: 60, width:50, color: Colors.blue),
27 | Container(height: 60, width:50, color: Colors.red),
28 | Container(height: 60, width:50, color: Colors.blue),
29 | Container(height: 60, width:50, color: Colors.orange),
30 |
31 | ],
32 | ),*/
33 | Column(
34 | //direction: Axis.vertical,
35 | //alignment: WrapAlignment.spaceEvenly,
36 | mainAxisAlignment: MainAxisAlignment.start,
37 | crossAxisAlignment: CrossAxisAlignment.center,
38 | children: [
39 | // Text("hsdiofhdoifnsdoincvosdnvsoinsdivnsdindndvoinvoivnsdosdpvso"),
40 | Container(height: 60, width:50, color: Colors.red),
41 | Container(height: 60, width:50, color: Colors.blue),
42 | Container(height: 60, width:50, color: Colors.red),
43 | Container(height: 60, width:50, color: Colors.blue),
44 | Container(height: 60, width:50, color: Colors.orange),
45 |
46 | ],
47 | )
48 | ),
49 | );
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/lib/widgets/bottomSheet.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class BottomSheetWidget extends StatelessWidget {
4 | const BottomSheetWidget({super.key});
5 |
6 | @override
7 | Widget build(BuildContext context) {
8 | return Scaffold(
9 | appBar: AppBar(
10 | title: Text('Bottom sheet widget',
11 | style: TextStyle(color: Colors.black,
12 | fontWeight: FontWeight.bold,),),
13 | centerTitle: true,
14 | ),
15 | body: Center(
16 | child: ElevatedButton(child: Text('Show Bottom Sheet'),
17 | onPressed: (){
18 | showModalBottomSheet(
19 | // elevation: ,
20 | isDismissible: true, // allows tapping anywhere on the screen to remove bottom sheet
21 | enableDrag: true, // you can drag the bottom sheet to remove it
22 | backgroundColor: Theme.of(context).primaryColor,
23 | context: context,
24 | shape: RoundedRectangleBorder(borderRadius: BorderRadius.only(
25 | topLeft: Radius.circular(20),
26 | topRight: Radius.circular(20),
27 | )),
28 | builder: (context)
29 | {
30 | return Column(
31 | mainAxisSize: MainAxisSize.min, // removes extra spaces
32 | children: [
33 | ListTile(
34 | title: Text('Orange'),
35 | subtitle: Text('Karan'),
36 | onTap: (){print("Oranges are sour and sweet !");},
37 | ),
38 | ListTile(
39 | title: Text('Apple'),
40 | subtitle: Text('Subhava'),
41 | ),
42 | ListTile(
43 | title: Text('Banana'),
44 | subtitle: Text('Murali'),
45 | ),
46 | ListTile(
47 | title: Text('Papaya'),
48 | subtitle: Text('Premchand'),
49 | ),
50 | ],);
51 | });
52 | },),
53 | )
54 | );
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/lib/widgets/image.dart:
--------------------------------------------------------------------------------
1 | import 'package:cached_network_image/cached_network_image.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | class ImageWidget extends StatelessWidget {
5 | const ImageWidget({super.key});
6 |
7 | @override
8 | Widget build(BuildContext context) {
9 | return Scaffold(
10 | appBar: AppBar(
11 | title: Text('Doraemon Image', style: TextStyle(color: Colors.black)),
12 | centerTitle: true,
13 | backgroundColor: Colors.white,
14 | ),
15 |
16 | body: Center(
17 | child: Container(
18 | height: 200,
19 | width: 300,
20 | child: CachedNetworkImage(imageUrl: 'https://wallpaperaccess.com/full/3161760.jpg',
21 | placeholder: (context,url)=>CircularProgressIndicator(),
22 | errorWidget: (context,url,error)=>Icon(Icons.error),
23 | ),
24 | // color: Colors.red, comment it out as color already mentioned in Boxdecoration
25 | /* decoration: BoxDecoration(
26 | boxShadow: [BoxShadow(
27 | blurRadius: 10,
28 | color: Colors.grey.shade500,
29 | spreadRadius: 5.0,
30 | )],
31 | image: DecorationImage(image: AssetImage('assets/dora2.jpg'),
32 |
33 |
34 | *//*NetworkImage(
35 | 'https://vignette.wikia.nocookie.net/doraemon/images/0/0c/15123387_12783788422'
36 | '03958_7328538021889183486_o.jpg/revision/latest?cb=20170415224410&path-prefix=en'
37 | ),*//*
38 | fit: BoxFit.fill,
39 | ),
40 | color: Colors.red,
41 | borderRadius: BorderRadius.circular(20),
42 | ),*/
43 | // above is a much better way to implement an image
44 | /*child: Image.network(
45 | 'https://vignette.wikia.nocookie.net/doraemon/images/0/0c/15123387_1278378842203958_7328538021889183486_o.jpg/revision/latest?cb=20170415224410&path-prefix=en',
46 | fit: BoxFit.cover,*/
47 | ),
48 | ),
49 | );
50 |
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/windows/runner/utils.cpp:
--------------------------------------------------------------------------------
1 | #include "utils.h"
2 |
3 | #include
4 | #include
5 | #include
6 | #include
7 |
8 | #include
9 |
10 | void CreateAndAttachConsole() {
11 | if (::AllocConsole()) {
12 | FILE *unused;
13 | if (freopen_s(&unused, "CONOUT$", "w", stdout)) {
14 | _dup2(_fileno(stdout), 1);
15 | }
16 | if (freopen_s(&unused, "CONOUT$", "w", stderr)) {
17 | _dup2(_fileno(stdout), 2);
18 | }
19 | std::ios::sync_with_stdio();
20 | FlutterDesktopResyncOutputStreams();
21 | }
22 | }
23 |
24 | std::vector GetCommandLineArguments() {
25 | // Convert the UTF-16 command line arguments to UTF-8 for the Engine to use.
26 | int argc;
27 | wchar_t** argv = ::CommandLineToArgvW(::GetCommandLineW(), &argc);
28 | if (argv == nullptr) {
29 | return std::vector();
30 | }
31 |
32 | std::vector command_line_arguments;
33 |
34 | // Skip the first argument as it's the binary name.
35 | for (int i = 1; i < argc; i++) {
36 | command_line_arguments.push_back(Utf8FromUtf16(argv[i]));
37 | }
38 |
39 | ::LocalFree(argv);
40 |
41 | return command_line_arguments;
42 | }
43 |
44 | std::string Utf8FromUtf16(const wchar_t* utf16_string) {
45 | if (utf16_string == nullptr) {
46 | return std::string();
47 | }
48 | unsigned int target_length = ::WideCharToMultiByte(
49 | CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string,
50 | -1, nullptr, 0, nullptr, nullptr)
51 | -1; // remove the trailing null character
52 | int input_length = (int)wcslen(utf16_string);
53 | std::string utf8_string;
54 | if (target_length == 0 || target_length > utf8_string.max_size()) {
55 | return utf8_string;
56 | }
57 | utf8_string.resize(target_length);
58 | int converted_length = ::WideCharToMultiByte(
59 | CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string,
60 | input_length, utf8_string.data(), target_length, nullptr, nullptr);
61 | if (converted_length == 0) {
62 | return std::string();
63 | }
64 | return utf8_string;
65 | }
66 |
--------------------------------------------------------------------------------
/lib/widgets/dropdown.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class DropDownWidget extends StatefulWidget {
4 | const DropDownWidget({super.key});
5 |
6 | @override
7 | State createState() => _DropDownWidgetState();
8 | }
9 |
10 | class _DropDownWidgetState extends State {
11 | String selectedValue = 'Orange';
12 | @override
13 | Widget build(BuildContext context) {
14 | return Scaffold(
15 | appBar: AppBar(
16 | title: Text("Drop down Widget",
17 | style: TextStyle(fontWeight: FontWeight.bold,fontSize: 30,fontStyle: FontStyle.italic ),),
18 | centerTitle: true,
19 | backgroundColor: Colors.grey,
20 |
21 | ),
22 | body: Center(
23 | child: Column(
24 | mainAxisAlignment: MainAxisAlignment.center,
25 | children: [
26 | Container(
27 | margin: EdgeInsets.all(10),
28 | height: 70,
29 | //color: Colors.red,
30 | width: MediaQuery.of(context).size.width,
31 | child:
32 | DropdownButton(
33 | dropdownColor: Colors.grey.shade200,
34 | isExpanded: true, // utilises the entire width of the container
35 | value: selectedValue,
36 | icon: Icon(Icons.arrow_circle_down_rounded),
37 | onChanged: (String? newvalue){
38 | setState(() {
39 | selectedValue = newvalue!;
40 | });
41 | },
42 | items: [
43 | 'Orange',
44 | 'Apple',
45 | 'Mango',
46 | 'Banana',
47 | 'Grapes',
48 |
49 | ].map>((String value){
50 | return DropdownMenuItem(
51 | value: value,
52 | child: Text(value),
53 | );
54 | }).toList(),
55 | ),
56 | )
57 | ]
58 | ),
59 | )
60 | );
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/lib/widgets/list_grid.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class ListGridState extends StatefulWidget {
4 | const ListGridState({super.key});
5 |
6 | @override
7 | State createState() => _ListGridStateState();
8 | }
9 |
10 | class _ListGridStateState extends State {
11 | List fruits = ['Orange','Apple','Mango','Banana'];
12 | // to work with subtitle
13 | Map fruits_person = {
14 | 'fruits' : ['Orange','Apple','Mango','Banana'],
15 | 'whoAte' : ['Raghav','Aryan','Kritarth','Prabhu'],
16 | };
17 | // List whoAte = ['Raghav','Aryan','Kritarth','Prabhu'];
18 | @override
19 | Widget build(BuildContext context) {
20 | return Scaffold(
21 |
22 | appBar: AppBar(title: Center(child: Text('List and Grid')),
23 | backgroundColor: Colors.red,
24 | elevation: 8,
25 | ),
26 | body: Container(
27 | /* child: ListView.builder(
28 | itemCount: fruits.length,
29 | itemBuilder: (context,index){
30 | return Card(child: ListTile(
31 | focusColor: Colors.yellow,
32 | hoverColor: Colors.yellow,
33 | onTap: ()
34 | // using this way, we could print each list elem individually along with some text
35 | print(("This is the fruit ${fruits_person['fruits'][index]}"));
36 | },
37 | leading: Icon(Icons.person_4_sharp),
38 | title: Text(fruits_person['fruits'][index]),
39 | subtitle: Text(fruits_person['whoAte'][index]),
40 | //Text(fruits[index]) <- this is old way,
41 | // subtitle: Text(whoAte[index]),
42 | ),
43 | );
44 | },
45 |
46 | ),*/
47 | child: GridView.builder(gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 4),
48 | itemCount: fruits.length,
49 | itemBuilder:(context, index) {
50 | return Card(child: Center(child: Text(fruits[index]),
51 | ),
52 | );
53 | },),
54 | ),
55 | );
56 | }
57 | }
58 |
59 |
--------------------------------------------------------------------------------
/lib/widgets/dismissible.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | class DismissibleWidget extends StatefulWidget {
3 | const DismissibleWidget({super.key});
4 |
5 | @override
6 | State createState() => _DismissibleWidgetState();
7 | }
8 |
9 | class _DismissibleWidgetState extends State {
10 | List fruits = ['Orange','Apple','Mango','Papaya','Banana'];
11 | @override
12 | Widget build(BuildContext context) {
13 | return Scaffold(
14 | appBar: AppBar(title: Text('Dismissible Widget',
15 | style: TextStyle(color: Colors.white),),
16 | backgroundColor: Colors.blueGrey,
17 | centerTitle: true,
18 | ),
19 | body: ListView.builder(
20 | itemCount: fruits.length,
21 | itemBuilder: (context,index)
22 | {
23 | final fruit = fruits[index];
24 | return Dismissible(
25 | onDismissed: (direction) {
26 | if(direction==DismissDirection.startToEnd) {
27 | //then display a snackbar message
28 | ScaffoldMessenger.of(context).showSnackBar(SnackBar(content:Text(fruits[index]),
29 | backgroundColor: Colors.yellow,
30 | action: SnackBarAction(label: 'Deleted', onPressed: (){}),));
31 | }
32 | else {
33 | ScaffoldMessenger.of(context).showSnackBar(SnackBar(
34 | behavior: SnackBarBehavior.floating,
35 | duration: const Duration(milliseconds: 2000),
36 | content:Text(fruits[index]),
37 | backgroundColor: Colors.green,
38 | action: SnackBarAction(label: 'Redo', onPressed: (){}),));
39 | }
40 | },
41 | key: Key(fruit),
42 | background: Container(color: Colors.red,),
43 | secondaryBackground: Container(color: Colors.green,),
44 | child: Card(
45 | child: ListTile(
46 | title: Text(fruits[index]),
47 | ),
48 | )
49 | );
50 | },
51 | ),
52 | );
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/lib/widgets/imagepicker.dart:
--------------------------------------------------------------------------------
1 | import 'dart:io';
2 |
3 | import 'package:flutter/material.dart';
4 | import 'package:image_picker/image_picker.dart';
5 |
6 | class ImagePickerWidget extends StatefulWidget {
7 | const ImagePickerWidget({super.key});
8 |
9 | @override
10 | State createState() => _ImagePickerWidgetState();
11 | }
12 |
13 | class _ImagePickerWidgetState extends State {
14 | XFile? file;
15 | ImagePicker _picker = ImagePicker();
16 | List? files;
17 | // to pick up a list of images
18 |
19 | @override
20 | Widget build(BuildContext context) {
21 | return Scaffold(
22 | appBar: AppBar(
23 | title: Text('Image picker'),
24 | centerTitle: true,
25 | ),
26 | body: Center(
27 | child: Column(
28 | children: [
29 | Container(
30 | height: 300,
31 | width : double.infinity,
32 | color: Colors.grey.shade200,
33 | child: Center(child: file==null? Text('Image not picked'):
34 | Image.file(File(file!.path),
35 | fit: BoxFit.cover,))
36 | ),
37 | ElevatedButton(onPressed: () async{
38 | // we have picked an image from gallery and saved it in photo
39 | final XFile? photo =
40 | await _picker.pickImage(source: ImageSource.gallery);
41 | setState(() {
42 | file= photo; //linked the photo to the file
43 | });
44 | print('Image picked');
45 | print(photo!.path);
46 | },
47 | child: Text('Pick image')
48 | ),
49 | ElevatedButton(onPressed: () async{
50 | // we have picked an image from gallery and saved it in photo
51 | final List? photos = await _picker.pickMultiImage();
52 | setState(() {
53 | files= photos; //linked the photo to the file
54 | });
55 | print('Images picked');
56 | for(int i =0; i
4 |
5 | #include "flutter/generated_plugin_registrant.h"
6 |
7 | FlutterWindow::FlutterWindow(const flutter::DartProject& project)
8 | : project_(project) {}
9 |
10 | FlutterWindow::~FlutterWindow() {}
11 |
12 | bool FlutterWindow::OnCreate() {
13 | if (!Win32Window::OnCreate()) {
14 | return false;
15 | }
16 |
17 | RECT frame = GetClientArea();
18 |
19 | // The size here must match the window dimensions to avoid unnecessary surface
20 | // creation / destruction in the startup path.
21 | flutter_controller_ = std::make_unique(
22 | frame.right - frame.left, frame.bottom - frame.top, project_);
23 | // Ensure that basic setup of the controller was successful.
24 | if (!flutter_controller_->engine() || !flutter_controller_->view()) {
25 | return false;
26 | }
27 | RegisterPlugins(flutter_controller_->engine());
28 | SetChildContent(flutter_controller_->view()->GetNativeWindow());
29 |
30 | flutter_controller_->engine()->SetNextFrameCallback([&]() {
31 | this->Show();
32 | });
33 |
34 | // Flutter can complete the first frame before the "show window" callback is
35 | // registered. The following call ensures a frame is pending to ensure the
36 | // window is shown. It is a no-op if the first frame hasn't completed yet.
37 | flutter_controller_->ForceRedraw();
38 |
39 | return true;
40 | }
41 |
42 | void FlutterWindow::OnDestroy() {
43 | if (flutter_controller_) {
44 | flutter_controller_ = nullptr;
45 | }
46 |
47 | Win32Window::OnDestroy();
48 | }
49 |
50 | LRESULT
51 | FlutterWindow::MessageHandler(HWND hwnd, UINT const message,
52 | WPARAM const wparam,
53 | LPARAM const lparam) noexcept {
54 | // Give Flutter, including plugins, an opportunity to handle window messages.
55 | if (flutter_controller_) {
56 | std::optional result =
57 | flutter_controller_->HandleTopLevelWindowProc(hwnd, message, wparam,
58 | lparam);
59 | if (result) {
60 | return *result;
61 | }
62 | }
63 |
64 | switch (message) {
65 | case WM_FONTCHANGE:
66 | flutter_controller_->engine()->ReloadSystemFonts();
67 | break;
68 | }
69 |
70 | return Win32Window::MessageHandler(hwnd, message, wparam, lparam);
71 | }
72 |
--------------------------------------------------------------------------------
/lib/widgets/stack.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class StackWidget extends StatelessWidget {
4 | const StackWidget({super.key});
5 |
6 | @override
7 | Widget build(BuildContext context) {
8 | return Scaffold(
9 | appBar: AppBar(
10 | title: Text("Learning Stack Widget"),
11 | centerTitle: true, // Correct way to center the title
12 | backgroundColor: Colors.redAccent,
13 | ),
14 | body: Stack(children: [
15 | Positioned(
16 | //top: 100,
17 | child: Container(
18 | //color: Colors.red,
19 | height: 300,
20 | width: MediaQuery.of(context).size.width,
21 | decoration: BoxDecoration(
22 | image:DecorationImage(image: AssetImage('assets/dora1.jpg'),
23 | fit: BoxFit.fill),
24 | )
25 | ),
26 | ),
27 | Positioned(
28 | top: 20, left: 50,
29 | child: Container(
30 | height: 20, width: 75, color: Colors.yellow, child: Text('Doraemon'),
31 | )
32 | ),
33 | Align(
34 | alignment: Alignment.center,
35 | child: Image.asset('assets/dora2.jpg'),
36 | ),
37 | Align(
38 | alignment: Alignment.bottomCenter,
39 | child: Image.asset('assets/dora2.jpg'),
40 | ),
41 |
42 | ],)
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 | /*Container(
76 | color: Colors.blue,
77 | child: Center(
78 | child: Stack(children: [
79 | Positioned(
80 | bottom: 10,
81 | left: 20,
82 | child: Container(height: 300,width: 300,color: Colors.yellow,),
83 | ),
84 | Positioned(
85 | top: 40,
86 | left: 50,
87 | child: Container(height: 250,width: 250,color: Colors.red,),
88 | ),
89 | Center(
90 | child: Container(height: 50,width: 50,color: Colors.green,),
91 | ),
92 | Center(
93 | child: Container(height: 25,width: 25,color: Colors.grey,),
94 | ),
95 |
96 | ],),
97 | ),
98 | )*/
99 | );
100 | }
101 | }
102 |
--------------------------------------------------------------------------------
/lib/widgets/button.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class buttonWidget extends StatelessWidget {
4 | const buttonWidget({super.key});
5 |
6 | @override
7 | Widget build(BuildContext context) {
8 | return Scaffold(
9 |
10 | appBar: AppBar(
11 |
12 | backgroundColor: Colors.indigo,
13 | title: Center(child: Text('Buttons',
14 | style: TextStyle(color: Colors.yellow,),)),
15 |
16 | ),
17 | body: Center(
18 | child: Column(
19 | mainAxisAlignment: MainAxisAlignment.center,
20 | children: [
21 | Center(
22 | child: Text('Working of different buttons',
23 | style: TextStyle(color: Colors.white60, fontSize: 20,fontWeight: FontWeight.bold, ),
24 | ),
25 | ),
26 | SizedBox(height: 20,),
27 | TextButton(onPressed: (){},
28 |
29 | style: ButtonStyle(
30 | padding: WidgetStateProperty.all(EdgeInsets.all(20),),
31 | elevation: WidgetStateProperty.all(20),
32 | overlayColor: WidgetStateProperty.all(Colors.yellow),
33 | backgroundColor: WidgetStateProperty.all(Colors.cyan)),
34 | child:
35 | Text(
36 | 'Press me',
37 | style: TextStyle(fontSize: 20, color: Colors.black,))
38 | ),
39 | SizedBox(height: 20,),
40 | Container(
41 | height: 100,
42 | width: 200,
43 | child: ElevatedButton(
44 | style: ButtonStyle(backgroundColor: WidgetStateProperty.all(Theme.of(context).primaryColor),
45 | overlayColor: WidgetStateProperty.all(Colors.yellow,),
46 | padding: WidgetStateProperty.all(EdgeInsets.all(20)),
47 | shape: WidgetStateProperty.all(RoundedRectangleBorder(
48 | borderRadius: BorderRadius.circular(40),
49 | ),
50 | ),
51 | ),
52 | onPressed: (){
53 | print('Like and Share');
54 | },
55 | child: Text(
56 | 'Press me',
57 | style: TextStyle(fontSize: 20, color: Colors.black),
58 | ),
59 | ),
60 | ),
61 | ],
62 | ),
63 | ),
64 | );
65 | }
66 | }
67 |
68 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/lib/widgets/animated_text.dart:
--------------------------------------------------------------------------------
1 | import 'package:animated_text_kit/animated_text_kit.dart';
2 | import 'package:flutter/material.dart';
3 | class AnimatedTextWidget extends StatelessWidget {
4 | const AnimatedTextWidget({super.key});
5 |
6 | @override
7 | Widget build(BuildContext context) {
8 | return Scaffold(
9 | appBar: AppBar(
10 | title: Text('Animated texts'),
11 | centerTitle: true,
12 | backgroundColor: Colors.purpleAccent,
13 | ),
14 | body: Center(
15 | child: Column(
16 | mainAxisAlignment: MainAxisAlignment.center,
17 | children: [
18 | /*AnimatedTextKit(
19 | animatedTexts: [
20 | TypewriterAnimatedText('Subhava Ojha',textStyle: TextStyle(
21 | fontSize: 30, fontWeight: FontWeight.bold,
22 | ),
23 | speed: Duration(milliseconds: 500))
24 | ],
25 | totalRepeatCount: 5,
26 | pause : Duration(milliseconds: 200), // duration between two animations
27 | displayFullTextOnTap: true, // tap to quickly view entire animation
28 | stopPauseOnTap: true, //tap on it to pause the animation
29 | ),*/
30 | /*AnimatedTextKit(
31 | animatedTexts: [
32 | RotateAnimatedText('Hello',textStyle: TextStyle(
33 | fontSize: 30, fontWeight: FontWeight.bold,),
34 | ),
35 | RotateAnimatedText('Beautiful',textStyle: TextStyle(
36 | fontSize: 30, fontWeight: FontWeight.bold,),
37 | ),
38 | RotateAnimatedText('World',textStyle: TextStyle(
39 | fontSize: 30, fontWeight: FontWeight.bold,),
40 | ),
41 |
42 | ],
43 | *//* totalRepeatCount: 4,
44 | pause : Duration(milliseconds: 200), // duration between two animations
45 | displayFullTextOnTap: true, // tap to quickly view entire animation
46 | stopPauseOnTap: true, *//*//tap on it to pause the animation
47 | ),*/
48 | AnimatedTextKit(animatedTexts: [
49 | WavyAnimatedText('Hello World',
50 | textStyle: TextStyle(
51 | fontSize: 30, fontWeight: FontWeight.bold,)
52 | ,),
53 | WavyAnimatedText('Hello World',
54 | textStyle: TextStyle(
55 | fontSize: 30, fontWeight: FontWeight.bold,)
56 | ,)
57 |
58 | ]
59 | )
60 |
61 |
62 | ],
63 | ),
64 | ),
65 | );
66 | }
67 | }
68 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 | package="com.example.thirty_widgets">
3 |
4 |
5 |
6 |
7 |
8 |
12 |
21 |
25 |
29 |
30 |
31 |
32 |
33 |
34 |
36 |
39 |
40 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/lib/widgets/location.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:fluttertoast/fluttertoast.dart';
3 | import 'package:geolocator/geolocator.dart';
4 |
5 |
6 | class LocationWidget extends StatefulWidget {
7 | const LocationWidget({super.key});
8 |
9 | @override
10 | State createState() => _LocationWidgetState();
11 | }
12 |
13 | class _LocationWidgetState extends State {
14 | Position? position;
15 | // function for the location
16 | fetchposition() async { // async since it takes a little time to fetch all the details
17 | bool serviceEnabled;
18 | LocationPermission permission ;
19 | //String latitude ;
20 | serviceEnabled = await Geolocator.isLocationServiceEnabled();
21 |
22 | if(!serviceEnabled) {
23 | Fluttertoast.showToast(msg: 'Location service is disabled');
24 | } // till here we checked whether location service is enabled on the device or not
25 | // now take permission from user
26 | permission = await Geolocator.checkPermission();
27 | if(permission == LocationPermission.denied)
28 | {
29 | //ask the user for permission
30 | permission = await Geolocator.requestPermission();
31 | if(permission == LocationPermission.denied)
32 | {//if user again denies permission then show this message
33 | Fluttertoast.showToast(msg: 'You denied the permission');
34 | return;
35 | }
36 | }
37 | // if location permission is denied forever
38 | if(permission == LocationPermission.deniedForever)
39 | {
40 | Fluttertoast.showToast(msg: 'You denied the permission forever');
41 | return;
42 | }
43 | // if above statements are false then we could proceed to fetch location of the user
44 | Position currentposition= await Geolocator.getCurrentPosition();
45 |
46 | //update the UI
47 | setState(() {
48 | position = currentposition;
49 | /*latitude = currentposition.latitude.toString();
50 | print(latitude);*/
51 | });
52 | }
53 | @override
54 | Widget build(BuildContext context) {
55 | return Scaffold(
56 | appBar: AppBar(
57 | title: Text('Geolocation'),
58 | centerTitle: true,
59 | ),
60 | body: Center(
61 | child: Column(
62 | mainAxisAlignment: MainAxisAlignment.center,
63 | children: [
64 | Text(position==null? 'Location' : position.toString() // if else
65 | ,style: TextStyle(
66 | fontSize: 20,
67 | ),
68 | ),
69 | ElevatedButton(onPressed: (){
70 | fetchposition(); // call the function, only then it will run
71 | }, child: Text('Get Location'))
72 | ],),
73 | ),
74 | );
75 | }
76 | }
77 |
--------------------------------------------------------------------------------
/lib/widgets/bottomnav.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:thirty_widgets/widgets/alert.dart';
3 | import 'package:thirty_widgets/widgets/dismissible.dart';
4 | import 'package:thirty_widgets/widgets/rowscols.dart';
5 | import 'package:thirty_widgets/widgets/snackbar.dart';
6 |
7 |
8 |
9 | class BottomNav extends StatefulWidget {
10 | const BottomNav({super.key});
11 |
12 | @override
13 | State createState() => _BottomNavState();
14 | }
15 |
16 | class _BottomNavState extends State {
17 | int selectedIndex = 0;
18 | PageController pageController = PageController();
19 | // in actual apps we would be returning pages instead of simple texts
20 | /* List widgets = [ // these texts will be returned on clicking those widgets
21 | Text('Home'),
22 | Text('Search'),
23 | Text('Add'),
24 | Text('Profile'),
25 | ];*/
26 | // a function to determine on what happens when we click a widget on bottomNav bar
27 | void onTapped(int index)
28 | {
29 | setState((){
30 | selectedIndex = index;
31 | });
32 | pageController.jumpToPage(selectedIndex); // this dynamically jumps to pages acc to clicking the widgets in bottomNav bar
33 | }
34 | @override
35 | Widget build(BuildContext context) {
36 | return Scaffold(
37 | /* appBar: AppBar(
38 | title: Text('Bottom Navigation Widget'),
39 | centerTitle: true,
40 | backgroundColor: Colors.grey,
41 | ),*/
42 | // return PageView to display actual pages on clicking widgets in the bottomNav bar
43 | body: PageView(
44 | controller: pageController,
45 | children: [
46 | AlertWidget(),
47 | DismissibleWidget(),
48 | RowsCols(),
49 | SnackbarWidget(),
50 | ],
51 | ),
52 | bottomNavigationBar: BottomNavigationBar(
53 | backgroundColor: Colors.grey,
54 | items: const
55 | [
56 | BottomNavigationBarItem(icon: Icon(Icons.home,),label: 'Home'),
57 | BottomNavigationBarItem(icon: Icon(Icons.search,),label: 'Search'),
58 | BottomNavigationBarItem(icon: Icon(Icons.add,),label: 'Add'),
59 | BottomNavigationBarItem(icon: Icon(Icons.person,),label: 'Profile'),
60 |
61 | ],
62 | currentIndex: selectedIndex,
63 | selectedItemColor: Colors.green,
64 | unselectedItemColor: Colors.grey,
65 | onTap: onTapped,
66 | ),
67 |
68 | );
69 | }
70 | }
71 |
72 | /*
73 | The user taps a navigation item → onTap: onTapped is triggered.
74 | 2️⃣ onTapped(index) updates selectedIndex using setState().
75 | 3️⃣ pageController.jumpToPage(selectedIndex) moves to the selected page in PageView.
76 | 4️⃣ currentIndex: selectedIndex ensures the correct tab is highlighted.
77 | This setup makes your Bottom Navigation Bar fully functional with dynamic page switching!
78 | */
79 |
--------------------------------------------------------------------------------
/lib/widgets/drawer.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class DrawerWidget extends StatefulWidget {
4 | const DrawerWidget({super.key});
5 |
6 | @override
7 | State createState() => _DrawerWidgetState();
8 | }
9 |
10 | class _DrawerWidgetState extends State {
11 | @override
12 | Widget build(BuildContext context) {
13 | return Scaffold(
14 | drawer: Drawer(
15 | child: Container(
16 | color: Theme.of(context).primaryColor,
17 | // now create a listView
18 | child: ListView(
19 | children: [
20 | DrawerHeader(
21 | padding: EdgeInsets.zero,
22 | child: Container(
23 | // color: Colors.red,
24 | padding: EdgeInsets.all(10),
25 | child:
26 | Row(
27 | children: [
28 | CircleAvatar(radius: 40,
29 | backgroundImage: NetworkImage(
30 | 'https://th.bing.com/th/id/OIP.eAhpOAqxLSrqcu4L3D8QsgHaHa?w=166&h=180&c=7&r=0&o=5&dpr=1.3&pid=1.7'),
31 | ),
32 | SizedBox(width: 10,),
33 | Column(
34 | crossAxisAlignment: CrossAxisAlignment.start,
35 | mainAxisAlignment: MainAxisAlignment.center,
36 | children: [
37 | Text('Tony Stark',style: TextStyle(fontWeight: FontWeight.bold,fontSize: 20)), Text('email: abc@gmail.com')
38 | ],)
39 | ]),
40 | ),
41 | ),
42 | ListTile(
43 | leading: Icon(Icons.folder),
44 | title: Text('My files'),
45 | ),
46 | ListTile(
47 | leading: Icon(Icons.group),
48 | title: Text('Shared with me'),
49 | ),
50 | ListTile(
51 | leading: Icon(Icons.star),
52 | title: Text('Starred'),
53 | ),
54 | ListTile(
55 | leading: Icon(Icons.delete),
56 | title: Text('Trash'),
57 | ),
58 | ListTile(
59 | leading: Icon(Icons.upload),
60 | title: Text('Uploads'),
61 | ),
62 | ListTile(
63 | leading: Icon(Icons.download),
64 | title: Text('My downloads'),
65 | ),
66 | Divider(), // creates a line btw widgets
67 | ListTile(
68 | leading: Icon(Icons.share),
69 | title: Text('Share'),
70 | ),
71 | ListTile(
72 | leading: Icon(Icons.logout),
73 | title: Text('Logout'),
74 | ),
75 | ],
76 | ),
77 | ),
78 | ),
79 | appBar: AppBar(
80 | title: Text('Drawer'),
81 | centerTitle: true,
82 | backgroundColor: Colors.deepOrange,
83 | ),
84 | body: Container(child: Center(child: Text('Hey there'))),
85 | );
86 | }
87 | }
88 |
--------------------------------------------------------------------------------
/linux/flutter/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # This file controls Flutter-level build steps. It should not be edited.
2 | cmake_minimum_required(VERSION 3.10)
3 |
4 | set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral")
5 |
6 | # Configuration provided via flutter tool.
7 | include(${EPHEMERAL_DIR}/generated_config.cmake)
8 |
9 | # TODO: Move the rest of this into files in ephemeral. See
10 | # https://github.com/flutter/flutter/issues/57146.
11 |
12 | # Serves the same purpose as list(TRANSFORM ... PREPEND ...),
13 | # which isn't available in 3.10.
14 | function(list_prepend LIST_NAME PREFIX)
15 | set(NEW_LIST "")
16 | foreach(element ${${LIST_NAME}})
17 | list(APPEND NEW_LIST "${PREFIX}${element}")
18 | endforeach(element)
19 | set(${LIST_NAME} "${NEW_LIST}" PARENT_SCOPE)
20 | endfunction()
21 |
22 | # === Flutter Library ===
23 | # System-level dependencies.
24 | find_package(PkgConfig REQUIRED)
25 | pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0)
26 | pkg_check_modules(GLIB REQUIRED IMPORTED_TARGET glib-2.0)
27 | pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0)
28 |
29 | set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/libflutter_linux_gtk.so")
30 |
31 | # Published to parent scope for install step.
32 | set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE)
33 | set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE)
34 | set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE)
35 | set(AOT_LIBRARY "${PROJECT_DIR}/build/lib/libapp.so" PARENT_SCOPE)
36 |
37 | list(APPEND FLUTTER_LIBRARY_HEADERS
38 | "fl_basic_message_channel.h"
39 | "fl_binary_codec.h"
40 | "fl_binary_messenger.h"
41 | "fl_dart_project.h"
42 | "fl_engine.h"
43 | "fl_json_message_codec.h"
44 | "fl_json_method_codec.h"
45 | "fl_message_codec.h"
46 | "fl_method_call.h"
47 | "fl_method_channel.h"
48 | "fl_method_codec.h"
49 | "fl_method_response.h"
50 | "fl_plugin_registrar.h"
51 | "fl_plugin_registry.h"
52 | "fl_standard_message_codec.h"
53 | "fl_standard_method_codec.h"
54 | "fl_string_codec.h"
55 | "fl_value.h"
56 | "fl_view.h"
57 | "flutter_linux.h"
58 | )
59 | list_prepend(FLUTTER_LIBRARY_HEADERS "${EPHEMERAL_DIR}/flutter_linux/")
60 | add_library(flutter INTERFACE)
61 | target_include_directories(flutter INTERFACE
62 | "${EPHEMERAL_DIR}"
63 | )
64 | target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}")
65 | target_link_libraries(flutter INTERFACE
66 | PkgConfig::GTK
67 | PkgConfig::GLIB
68 | PkgConfig::GIO
69 | )
70 | add_dependencies(flutter flutter_assemble)
71 |
72 | # === Flutter tool backend ===
73 | # _phony_ is a non-existent file to force this command to run every time,
74 | # since currently there's no way to get a full input/output list from the
75 | # flutter tool.
76 | add_custom_command(
77 | OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS}
78 | ${CMAKE_CURRENT_BINARY_DIR}/_phony_
79 | COMMAND ${CMAKE_COMMAND} -E env
80 | ${FLUTTER_TOOL_ENVIRONMENT}
81 | "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.sh"
82 | ${FLUTTER_TARGET_PLATFORM} ${CMAKE_BUILD_TYPE}
83 | VERBATIM
84 | )
85 | add_custom_target(flutter_assemble DEPENDS
86 | "${FLUTTER_LIBRARY}"
87 | ${FLUTTER_LIBRARY_HEADERS}
88 | )
89 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-App-20x20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-App-20x20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-App-29x29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-App-29x29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-App-29x29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-40x40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-40x40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-App-60x60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "Icon-App-60x60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "Icon-App-20x20@1x.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "Icon-App-20x20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "Icon-App-29x29@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "Icon-App-29x29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "Icon-App-40x40@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "Icon-App-40x40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "Icon-App-76x76@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "Icon-App-76x76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "Icon-App-83.5x83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "Icon-App-1024x1024@1x.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/windows/runner/Runner.rc:
--------------------------------------------------------------------------------
1 | // Microsoft Visual C++ generated resource script.
2 | //
3 | #pragma code_page(65001)
4 | #include "resource.h"
5 |
6 | #define APSTUDIO_READONLY_SYMBOLS
7 | /////////////////////////////////////////////////////////////////////////////
8 | //
9 | // Generated from the TEXTINCLUDE 2 resource.
10 | //
11 | #include "winres.h"
12 |
13 | /////////////////////////////////////////////////////////////////////////////
14 | #undef APSTUDIO_READONLY_SYMBOLS
15 |
16 | /////////////////////////////////////////////////////////////////////////////
17 | // English (United States) resources
18 |
19 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
20 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
21 |
22 | #ifdef APSTUDIO_INVOKED
23 | /////////////////////////////////////////////////////////////////////////////
24 | //
25 | // TEXTINCLUDE
26 | //
27 |
28 | 1 TEXTINCLUDE
29 | BEGIN
30 | "resource.h\0"
31 | END
32 |
33 | 2 TEXTINCLUDE
34 | BEGIN
35 | "#include ""winres.h""\r\n"
36 | "\0"
37 | END
38 |
39 | 3 TEXTINCLUDE
40 | BEGIN
41 | "\r\n"
42 | "\0"
43 | END
44 |
45 | #endif // APSTUDIO_INVOKED
46 |
47 |
48 | /////////////////////////////////////////////////////////////////////////////
49 | //
50 | // Icon
51 | //
52 |
53 | // Icon with lowest ID value placed first to ensure application icon
54 | // remains consistent on all systems.
55 | IDI_APP_ICON ICON "resources\\app_icon.ico"
56 |
57 |
58 | /////////////////////////////////////////////////////////////////////////////
59 | //
60 | // Version
61 | //
62 |
63 | #if defined(FLUTTER_VERSION_MAJOR) && defined(FLUTTER_VERSION_MINOR) && defined(FLUTTER_VERSION_PATCH) && defined(FLUTTER_VERSION_BUILD)
64 | #define VERSION_AS_NUMBER FLUTTER_VERSION_MAJOR,FLUTTER_VERSION_MINOR,FLUTTER_VERSION_PATCH,FLUTTER_VERSION_BUILD
65 | #else
66 | #define VERSION_AS_NUMBER 1,0,0,0
67 | #endif
68 |
69 | #if defined(FLUTTER_VERSION)
70 | #define VERSION_AS_STRING FLUTTER_VERSION
71 | #else
72 | #define VERSION_AS_STRING "1.0.0"
73 | #endif
74 |
75 | VS_VERSION_INFO VERSIONINFO
76 | FILEVERSION VERSION_AS_NUMBER
77 | PRODUCTVERSION VERSION_AS_NUMBER
78 | FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
79 | #ifdef _DEBUG
80 | FILEFLAGS VS_FF_DEBUG
81 | #else
82 | FILEFLAGS 0x0L
83 | #endif
84 | FILEOS VOS__WINDOWS32
85 | FILETYPE VFT_APP
86 | FILESUBTYPE 0x0L
87 | BEGIN
88 | BLOCK "StringFileInfo"
89 | BEGIN
90 | BLOCK "040904e4"
91 | BEGIN
92 | VALUE "CompanyName", "com.example" "\0"
93 | VALUE "FileDescription", "thirty_widgets" "\0"
94 | VALUE "FileVersion", VERSION_AS_STRING "\0"
95 | VALUE "InternalName", "thirty_widgets" "\0"
96 | VALUE "LegalCopyright", "Copyright (C) 2025 com.example. All rights reserved." "\0"
97 | VALUE "OriginalFilename", "thirty_widgets.exe" "\0"
98 | VALUE "ProductName", "thirty_widgets" "\0"
99 | VALUE "ProductVersion", VERSION_AS_STRING "\0"
100 | END
101 | END
102 | BLOCK "VarFileInfo"
103 | BEGIN
104 | VALUE "Translation", 0x409, 1252
105 | END
106 | END
107 |
108 | #endif // English (United States) resources
109 | /////////////////////////////////////////////////////////////////////////////
110 |
111 |
112 |
113 | #ifndef APSTUDIO_INVOKED
114 | /////////////////////////////////////////////////////////////////////////////
115 | //
116 | // Generated from the TEXTINCLUDE 3 resource.
117 | //
118 |
119 |
120 | /////////////////////////////////////////////////////////////////////////////
121 | #endif // not APSTUDIO_INVOKED
122 |
--------------------------------------------------------------------------------
/windows/runner/win32_window.h:
--------------------------------------------------------------------------------
1 | #ifndef RUNNER_WIN32_WINDOW_H_
2 | #define RUNNER_WIN32_WINDOW_H_
3 |
4 | #include
5 |
6 | #include
7 | #include
8 | #include
9 |
10 | // A class abstraction for a high DPI-aware Win32 Window. Intended to be
11 | // inherited from by classes that wish to specialize with custom
12 | // rendering and input handling
13 | class Win32Window {
14 | public:
15 | struct Point {
16 | unsigned int x;
17 | unsigned int y;
18 | Point(unsigned int x, unsigned int y) : x(x), y(y) {}
19 | };
20 |
21 | struct Size {
22 | unsigned int width;
23 | unsigned int height;
24 | Size(unsigned int width, unsigned int height)
25 | : width(width), height(height) {}
26 | };
27 |
28 | Win32Window();
29 | virtual ~Win32Window();
30 |
31 | // Creates a win32 window with |title| that is positioned and sized using
32 | // |origin| and |size|. New windows are created on the default monitor. Window
33 | // sizes are specified to the OS in physical pixels, hence to ensure a
34 | // consistent size this function will scale the inputted width and height as
35 | // as appropriate for the default monitor. The window is invisible until
36 | // |Show| is called. Returns true if the window was created successfully.
37 | bool Create(const std::wstring& title, const Point& origin, const Size& size);
38 |
39 | // Show the current window. Returns true if the window was successfully shown.
40 | bool Show();
41 |
42 | // Release OS resources associated with window.
43 | void Destroy();
44 |
45 | // Inserts |content| into the window tree.
46 | void SetChildContent(HWND content);
47 |
48 | // Returns the backing Window handle to enable clients to set icon and other
49 | // window properties. Returns nullptr if the window has been destroyed.
50 | HWND GetHandle();
51 |
52 | // If true, closing this window will quit the application.
53 | void SetQuitOnClose(bool quit_on_close);
54 |
55 | // Return a RECT representing the bounds of the current client area.
56 | RECT GetClientArea();
57 |
58 | protected:
59 | // Processes and route salient window messages for mouse handling,
60 | // size change and DPI. Delegates handling of these to member overloads that
61 | // inheriting classes can handle.
62 | virtual LRESULT MessageHandler(HWND window,
63 | UINT const message,
64 | WPARAM const wparam,
65 | LPARAM const lparam) noexcept;
66 |
67 | // Called when CreateAndShow is called, allowing subclass window-related
68 | // setup. Subclasses should return false if setup fails.
69 | virtual bool OnCreate();
70 |
71 | // Called when Destroy is called.
72 | virtual void OnDestroy();
73 |
74 | private:
75 | friend class WindowClassRegistrar;
76 |
77 | // OS callback called by message pump. Handles the WM_NCCREATE message which
78 | // is passed when the non-client area is being created and enables automatic
79 | // non-client DPI scaling so that the non-client area automatically
80 | // responds to changes in DPI. All other messages are handled by
81 | // MessageHandler.
82 | static LRESULT CALLBACK WndProc(HWND const window,
83 | UINT const message,
84 | WPARAM const wparam,
85 | LPARAM const lparam) noexcept;
86 |
87 | // Retrieves a class instance pointer for |window|
88 | static Win32Window* GetThisFromHandle(HWND const window) noexcept;
89 |
90 | // Update the window frame's theme to match the system theme.
91 | static void UpdateTheme(HWND const window);
92 |
93 | bool quit_on_close_ = false;
94 |
95 | // window handle for top level window.
96 | HWND window_handle_ = nullptr;
97 |
98 | // window handle for hosted content.
99 | HWND child_content_ = nullptr;
100 | };
101 |
102 | #endif // RUNNER_WIN32_WINDOW_H_
103 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
37 |
38 |
39 |
40 |
43 |
49 |
50 |
51 |
52 |
53 |
64 |
66 |
72 |
73 |
74 |
75 |
81 |
83 |
89 |
90 |
91 |
92 |
94 |
95 |
98 |
99 |
100 |
--------------------------------------------------------------------------------
/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
37 |
38 |
39 |
40 |
43 |
49 |
50 |
51 |
52 |
53 |
64 |
66 |
72 |
73 |
74 |
75 |
81 |
83 |
89 |
90 |
91 |
92 |
94 |
95 |
98 |
99 |
100 |
--------------------------------------------------------------------------------
/windows/flutter/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # This file controls Flutter-level build steps. It should not be edited.
2 | cmake_minimum_required(VERSION 3.14)
3 |
4 | set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral")
5 |
6 | # Configuration provided via flutter tool.
7 | include(${EPHEMERAL_DIR}/generated_config.cmake)
8 |
9 | # TODO: Move the rest of this into files in ephemeral. See
10 | # https://github.com/flutter/flutter/issues/57146.
11 | set(WRAPPER_ROOT "${EPHEMERAL_DIR}/cpp_client_wrapper")
12 |
13 | # Set fallback configurations for older versions of the flutter tool.
14 | if (NOT DEFINED FLUTTER_TARGET_PLATFORM)
15 | set(FLUTTER_TARGET_PLATFORM "windows-x64")
16 | endif()
17 |
18 | # === Flutter Library ===
19 | set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/flutter_windows.dll")
20 |
21 | # Published to parent scope for install step.
22 | set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE)
23 | set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE)
24 | set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE)
25 | set(AOT_LIBRARY "${PROJECT_DIR}/build/windows/app.so" PARENT_SCOPE)
26 |
27 | list(APPEND FLUTTER_LIBRARY_HEADERS
28 | "flutter_export.h"
29 | "flutter_windows.h"
30 | "flutter_messenger.h"
31 | "flutter_plugin_registrar.h"
32 | "flutter_texture_registrar.h"
33 | )
34 | list(TRANSFORM FLUTTER_LIBRARY_HEADERS PREPEND "${EPHEMERAL_DIR}/")
35 | add_library(flutter INTERFACE)
36 | target_include_directories(flutter INTERFACE
37 | "${EPHEMERAL_DIR}"
38 | )
39 | target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}.lib")
40 | add_dependencies(flutter flutter_assemble)
41 |
42 | # === Wrapper ===
43 | list(APPEND CPP_WRAPPER_SOURCES_CORE
44 | "core_implementations.cc"
45 | "standard_codec.cc"
46 | )
47 | list(TRANSFORM CPP_WRAPPER_SOURCES_CORE PREPEND "${WRAPPER_ROOT}/")
48 | list(APPEND CPP_WRAPPER_SOURCES_PLUGIN
49 | "plugin_registrar.cc"
50 | )
51 | list(TRANSFORM CPP_WRAPPER_SOURCES_PLUGIN PREPEND "${WRAPPER_ROOT}/")
52 | list(APPEND CPP_WRAPPER_SOURCES_APP
53 | "flutter_engine.cc"
54 | "flutter_view_controller.cc"
55 | )
56 | list(TRANSFORM CPP_WRAPPER_SOURCES_APP PREPEND "${WRAPPER_ROOT}/")
57 |
58 | # Wrapper sources needed for a plugin.
59 | add_library(flutter_wrapper_plugin STATIC
60 | ${CPP_WRAPPER_SOURCES_CORE}
61 | ${CPP_WRAPPER_SOURCES_PLUGIN}
62 | )
63 | apply_standard_settings(flutter_wrapper_plugin)
64 | set_target_properties(flutter_wrapper_plugin PROPERTIES
65 | POSITION_INDEPENDENT_CODE ON)
66 | set_target_properties(flutter_wrapper_plugin PROPERTIES
67 | CXX_VISIBILITY_PRESET hidden)
68 | target_link_libraries(flutter_wrapper_plugin PUBLIC flutter)
69 | target_include_directories(flutter_wrapper_plugin PUBLIC
70 | "${WRAPPER_ROOT}/include"
71 | )
72 | add_dependencies(flutter_wrapper_plugin flutter_assemble)
73 |
74 | # Wrapper sources needed for the runner.
75 | add_library(flutter_wrapper_app STATIC
76 | ${CPP_WRAPPER_SOURCES_CORE}
77 | ${CPP_WRAPPER_SOURCES_APP}
78 | )
79 | apply_standard_settings(flutter_wrapper_app)
80 | target_link_libraries(flutter_wrapper_app PUBLIC flutter)
81 | target_include_directories(flutter_wrapper_app PUBLIC
82 | "${WRAPPER_ROOT}/include"
83 | )
84 | add_dependencies(flutter_wrapper_app flutter_assemble)
85 |
86 | # === Flutter tool backend ===
87 | # _phony_ is a non-existent file to force this command to run every time,
88 | # since currently there's no way to get a full input/output list from the
89 | # flutter tool.
90 | set(PHONY_OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/_phony_")
91 | set_source_files_properties("${PHONY_OUTPUT}" PROPERTIES SYMBOLIC TRUE)
92 | add_custom_command(
93 | OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS}
94 | ${CPP_WRAPPER_SOURCES_CORE} ${CPP_WRAPPER_SOURCES_PLUGIN}
95 | ${CPP_WRAPPER_SOURCES_APP}
96 | ${PHONY_OUTPUT}
97 | COMMAND ${CMAKE_COMMAND} -E env
98 | ${FLUTTER_TOOL_ENVIRONMENT}
99 | "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat"
100 | ${FLUTTER_TARGET_PLATFORM} $
101 | VERBATIM
102 | )
103 | add_custom_target(flutter_assemble DEPENDS
104 | "${FLUTTER_LIBRARY}"
105 | ${FLUTTER_LIBRARY_HEADERS}
106 | ${CPP_WRAPPER_SOURCES_CORE}
107 | ${CPP_WRAPPER_SOURCES_PLUGIN}
108 | ${CPP_WRAPPER_SOURCES_APP}
109 | )
110 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: thirty_widgets
2 | description: "A new Flutter project."
3 | # The following line prevents the package from being accidentally published to
4 | # pub.dev using `flutter pub publish`. This is preferred for private packages.
5 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev
6 |
7 | # The following defines the version and build number for your application.
8 | # A version number is three numbers separated by dots, like 1.2.43
9 | # followed by an optional build number separated by a +.
10 | # Both the version and the builder number may be overridden in flutter
11 | # build by specifying --build-name and --build-number, respectively.
12 | # In Android, build-name is used as versionName while build-number used as versionCode.
13 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning
14 | # In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion.
15 | # Read more about iOS versioning at
16 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
17 | # In Windows, build-name is used as the major, minor, and patch parts
18 | # of the product and file versions while build-number is used as the build suffix.
19 | version: 1.0.0+1
20 |
21 | environment:
22 | sdk: ^3.7.0
23 |
24 | # Dependencies specify other packages that your package needs in order to work.
25 | # To automatically upgrade your package dependencies to the latest versions
26 | # consider running `flutter pub upgrade --major-versions`. Alternatively,
27 | # dependencies can be manually updated by changing the version numbers below to
28 | # the latest version available on pub.dev. To see which dependencies have newer
29 | # versions available, run `flutter pub outdated`.
30 | dependencies:
31 | flutter:
32 | sdk: flutter
33 | google_fonts:
34 | cached_network_image:
35 | animated_text_kit:
36 | image_picker:
37 | location:
38 | geolocator:
39 | fluttertoast:
40 | # The following adds the Cupertino Icons font to your application.
41 | # Use with the CupertinoIcons class for iOS style icons.
42 | cupertino_icons: ^1.0.8
43 |
44 | dev_dependencies:
45 | flutter_test:
46 | sdk: flutter
47 |
48 | # The "flutter_lints" package below contains a set of recommended lints to
49 | # encourage good coding practices. The lint set provided by the package is
50 | # activated in the `analysis_options.yaml` file located at the root of your
51 | # package. See that file for information about deactivating specific lint
52 | # rules and activating additional ones.
53 | flutter_lints: ^5.0.0
54 |
55 | # For information on the generic Dart part of this file, see the
56 | # following page: https://dart.dev/tools/pub/pubspec
57 |
58 | # The following section is specific to Flutter packages.
59 | flutter:
60 |
61 | # The following line ensures that the Material Icons font is
62 | # included with your application, so that you can use the icons in
63 | # the material Icons class.
64 | uses-material-design: true
65 |
66 | # To add assets to your application, add an assets section, like this:
67 | assets:
68 | - assets/
69 | # - images/a_dot_ham.jpeg
70 |
71 | # An image asset can refer to one or more resolution-specific "variants", see
72 | # https://flutter.dev/to/resolution-aware-images
73 |
74 | # For details regarding adding assets from package dependencies, see
75 | # https://flutter.dev/to/asset-from-package
76 |
77 | # To add custom fonts to your application, add a fonts section here,
78 | # in this "flutter" section. Each entry in this list should have a
79 | # "family" key with the font family name, and a "fonts" key with a
80 | # list giving the asset and other descriptors for the font. For
81 | # example:
82 | # fonts:
83 | # - family: Schyler
84 | # fonts:
85 | # - asset: fonts/Schyler-Regular.ttf
86 | # - asset: fonts/Schyler-Italic.ttf
87 | # style: italic
88 | # - family: Trajan Pro
89 | # fonts:
90 | # - asset: fonts/TrajanPro.ttf
91 | # - asset: fonts/TrajanPro_Bold.ttf
92 | # weight: 700
93 | #
94 | # For details regarding fonts from package dependencies,
95 | # see https://flutter.dev/to/font-from-package
96 |
--------------------------------------------------------------------------------
/windows/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Project-level configuration.
2 | cmake_minimum_required(VERSION 3.14)
3 | project(thirty_widgets LANGUAGES CXX)
4 |
5 | # The name of the executable created for the application. Change this to change
6 | # the on-disk name of your application.
7 | set(BINARY_NAME "thirty_widgets")
8 |
9 | # Explicitly opt in to modern CMake behaviors to avoid warnings with recent
10 | # versions of CMake.
11 | cmake_policy(VERSION 3.14...3.25)
12 |
13 | # Define build configuration option.
14 | get_property(IS_MULTICONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
15 | if(IS_MULTICONFIG)
16 | set(CMAKE_CONFIGURATION_TYPES "Debug;Profile;Release"
17 | CACHE STRING "" FORCE)
18 | else()
19 | if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
20 | set(CMAKE_BUILD_TYPE "Debug" CACHE
21 | STRING "Flutter build mode" FORCE)
22 | set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS
23 | "Debug" "Profile" "Release")
24 | endif()
25 | endif()
26 | # Define settings for the Profile build mode.
27 | set(CMAKE_EXE_LINKER_FLAGS_PROFILE "${CMAKE_EXE_LINKER_FLAGS_RELEASE}")
28 | set(CMAKE_SHARED_LINKER_FLAGS_PROFILE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE}")
29 | set(CMAKE_C_FLAGS_PROFILE "${CMAKE_C_FLAGS_RELEASE}")
30 | set(CMAKE_CXX_FLAGS_PROFILE "${CMAKE_CXX_FLAGS_RELEASE}")
31 |
32 | # Use Unicode for all projects.
33 | add_definitions(-DUNICODE -D_UNICODE)
34 |
35 | # Compilation settings that should be applied to most targets.
36 | #
37 | # Be cautious about adding new options here, as plugins use this function by
38 | # default. In most cases, you should add new options to specific targets instead
39 | # of modifying this function.
40 | function(APPLY_STANDARD_SETTINGS TARGET)
41 | target_compile_features(${TARGET} PUBLIC cxx_std_17)
42 | target_compile_options(${TARGET} PRIVATE /W4 /WX /wd"4100")
43 | target_compile_options(${TARGET} PRIVATE /EHsc)
44 | target_compile_definitions(${TARGET} PRIVATE "_HAS_EXCEPTIONS=0")
45 | target_compile_definitions(${TARGET} PRIVATE "$<$:_DEBUG>")
46 | endfunction()
47 |
48 | # Flutter library and tool build rules.
49 | set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter")
50 | add_subdirectory(${FLUTTER_MANAGED_DIR})
51 |
52 | # Application build; see runner/CMakeLists.txt.
53 | add_subdirectory("runner")
54 |
55 |
56 | # Generated plugin build rules, which manage building the plugins and adding
57 | # them to the application.
58 | include(flutter/generated_plugins.cmake)
59 |
60 |
61 | # === Installation ===
62 | # Support files are copied into place next to the executable, so that it can
63 | # run in place. This is done instead of making a separate bundle (as on Linux)
64 | # so that building and running from within Visual Studio will work.
65 | set(BUILD_BUNDLE_DIR "$")
66 | # Make the "install" step default, as it's required to run.
67 | set(CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD 1)
68 | if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
69 | set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE)
70 | endif()
71 |
72 | set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data")
73 | set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}")
74 |
75 | install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}"
76 | COMPONENT Runtime)
77 |
78 | install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}"
79 | COMPONENT Runtime)
80 |
81 | install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
82 | COMPONENT Runtime)
83 |
84 | if(PLUGIN_BUNDLED_LIBRARIES)
85 | install(FILES "${PLUGIN_BUNDLED_LIBRARIES}"
86 | DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
87 | COMPONENT Runtime)
88 | endif()
89 |
90 | # Copy the native assets provided by the build.dart from all packages.
91 | set(NATIVE_ASSETS_DIR "${PROJECT_BUILD_DIR}native_assets/windows/")
92 | install(DIRECTORY "${NATIVE_ASSETS_DIR}"
93 | DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
94 | COMPONENT Runtime)
95 |
96 | # Fully re-copy the assets directory on each build to avoid having stale files
97 | # from a previous install.
98 | set(FLUTTER_ASSET_DIR_NAME "flutter_assets")
99 | install(CODE "
100 | file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\")
101 | " COMPONENT Runtime)
102 | install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}"
103 | DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime)
104 |
105 | # Install the AOT library on non-Debug builds only.
106 | install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}"
107 | CONFIGURATIONS Profile;Release
108 | COMPONENT Runtime)
109 |
--------------------------------------------------------------------------------
/lib/widgets/day19ui.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class Day19 extends StatefulWidget {
4 | const Day19({super.key});
5 |
6 | @override
7 | State createState() => _Day19State();
8 | }
9 |
10 | class _Day19State extends State {
11 | @override
12 | Widget build(BuildContext context) {
13 | var h = MediaQuery.of(context).size.height;
14 | var w = MediaQuery.of(context).size.width;
15 |
16 | return Scaffold(
17 | body: Column(
18 | children: [
19 | // Stack Section
20 | Stack(
21 | children: [
22 | Container(
23 | height: 500,
24 | // color: Colors.yellow,
25 | child: Stack(
26 | children: [
27 | Positioned(
28 | top: 0,
29 | left: 0,
30 | right: 0,
31 | child: Container(
32 | height: 450,
33 | //color: Colors.red,
34 | decoration: BoxDecoration(
35 | image: DecorationImage(
36 | image: AssetImage('assets/madrid.webp'),
37 | fit: BoxFit.cover),
38 | ),
39 | ),
40 | ),
41 | Positioned(
42 | left: 20, top: 40,
43 | child:
44 | Container(
45 | child: Icon(Icons.arrow_back),
46 | ),
47 | ),
48 | Positioned(
49 | right: 20, top: 40,
50 | child:
51 | Container(
52 | child: Icon(Icons.favorite_outline),
53 | ),
54 | ),
55 | Positioned(
56 | bottom: 0,
57 | right: 20,
58 | child: CircleAvatar(
59 | backgroundImage: AssetImage('assets/random.jpeg'),
60 |
61 | radius: 50,
62 | ),
63 | ),
64 | ],
65 | ),
66 | ),
67 | ],
68 | ),
69 |
70 | // Info Section
71 | Container(
72 | padding: EdgeInsets.all(10),
73 | //color: Colors.blue,
74 | child: Column(
75 | crossAxisAlignment: CrossAxisAlignment.start,
76 | children: [
77 | Text(
78 | 'Madrid City Tour for Designers',
79 | style: TextStyle(fontSize: 30, fontWeight: FontWeight.bold),
80 | ),
81 | SizedBox(height: 10),
82 | Text(
83 | 'This is some random description of the topic',
84 | style: TextStyle(fontSize: 15, color: Colors.grey.shade200),
85 | ),
86 | ],
87 | ),
88 | ),
89 |
90 | // Icons & Text Section
91 | Container(
92 | // padding: EdgeInsets.symmetric(vertical: 10),
93 | height: 50,
94 | child: Row(
95 | mainAxisAlignment: MainAxisAlignment.spaceAround,
96 | children: [
97 | rowIconText('20', Icons.favorite_rounded),
98 | rowIconText('34', Icons.upload),
99 | rowIconText('82', Icons.message),
100 | rowIconText('295', Icons.face),
101 | ],
102 | ),
103 | ),
104 | Divider(),
105 | Container(
106 | padding: EdgeInsets.all(10),
107 | child:
108 | Text("Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.",
109 | style: TextStyle(fontSize: 9,),),
110 | )
111 | ],
112 | ),
113 | );
114 | }
115 | }
116 |
117 |
118 |
119 |
120 |
121 | // this widget eliminates the need to iteratively write rows again and again
122 | Widget rowIconText(String text, IconData icon)
123 | {
124 | return Row(
125 | children: [
126 | Text(text,
127 | style: TextStyle(
128 | fontWeight: FontWeight.bold,
129 | fontSize: 20,
130 | ),),
131 | SizedBox(width: 5,),
132 | Icon(icon),
133 | ],
134 | );
135 | }
--------------------------------------------------------------------------------
/linux/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Project-level configuration.
2 | cmake_minimum_required(VERSION 3.13)
3 | project(runner LANGUAGES CXX)
4 |
5 | # The name of the executable created for the application. Change this to change
6 | # the on-disk name of your application.
7 | set(BINARY_NAME "thirty_widgets")
8 | # The unique GTK application identifier for this application. See:
9 | # https://wiki.gnome.org/HowDoI/ChooseApplicationID
10 | set(APPLICATION_ID "com.example.thirty_widgets")
11 |
12 | # Explicitly opt in to modern CMake behaviors to avoid warnings with recent
13 | # versions of CMake.
14 | cmake_policy(SET CMP0063 NEW)
15 |
16 | # Load bundled libraries from the lib/ directory relative to the binary.
17 | set(CMAKE_INSTALL_RPATH "$ORIGIN/lib")
18 |
19 | # Root filesystem for cross-building.
20 | if(FLUTTER_TARGET_PLATFORM_SYSROOT)
21 | set(CMAKE_SYSROOT ${FLUTTER_TARGET_PLATFORM_SYSROOT})
22 | set(CMAKE_FIND_ROOT_PATH ${CMAKE_SYSROOT})
23 | set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
24 | set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
25 | set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
26 | set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
27 | endif()
28 |
29 | # Define build configuration options.
30 | if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
31 | set(CMAKE_BUILD_TYPE "Debug" CACHE
32 | STRING "Flutter build mode" FORCE)
33 | set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS
34 | "Debug" "Profile" "Release")
35 | endif()
36 |
37 | # Compilation settings that should be applied to most targets.
38 | #
39 | # Be cautious about adding new options here, as plugins use this function by
40 | # default. In most cases, you should add new options to specific targets instead
41 | # of modifying this function.
42 | function(APPLY_STANDARD_SETTINGS TARGET)
43 | target_compile_features(${TARGET} PUBLIC cxx_std_14)
44 | target_compile_options(${TARGET} PRIVATE -Wall -Werror)
45 | target_compile_options(${TARGET} PRIVATE "$<$>:-O3>")
46 | target_compile_definitions(${TARGET} PRIVATE "$<$>:NDEBUG>")
47 | endfunction()
48 |
49 | # Flutter library and tool build rules.
50 | set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter")
51 | add_subdirectory(${FLUTTER_MANAGED_DIR})
52 |
53 | # System-level dependencies.
54 | find_package(PkgConfig REQUIRED)
55 | pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0)
56 |
57 | # Application build; see runner/CMakeLists.txt.
58 | add_subdirectory("runner")
59 |
60 | # Run the Flutter tool portions of the build. This must not be removed.
61 | add_dependencies(${BINARY_NAME} flutter_assemble)
62 |
63 | # Only the install-generated bundle's copy of the executable will launch
64 | # correctly, since the resources must in the right relative locations. To avoid
65 | # people trying to run the unbundled copy, put it in a subdirectory instead of
66 | # the default top-level location.
67 | set_target_properties(${BINARY_NAME}
68 | PROPERTIES
69 | RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/intermediates_do_not_run"
70 | )
71 |
72 |
73 | # Generated plugin build rules, which manage building the plugins and adding
74 | # them to the application.
75 | include(flutter/generated_plugins.cmake)
76 |
77 |
78 | # === Installation ===
79 | # By default, "installing" just makes a relocatable bundle in the build
80 | # directory.
81 | set(BUILD_BUNDLE_DIR "${PROJECT_BINARY_DIR}/bundle")
82 | if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
83 | set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE)
84 | endif()
85 |
86 | # Start with a clean build bundle directory every time.
87 | install(CODE "
88 | file(REMOVE_RECURSE \"${BUILD_BUNDLE_DIR}/\")
89 | " COMPONENT Runtime)
90 |
91 | set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data")
92 | set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib")
93 |
94 | install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}"
95 | COMPONENT Runtime)
96 |
97 | install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}"
98 | COMPONENT Runtime)
99 |
100 | install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
101 | COMPONENT Runtime)
102 |
103 | foreach(bundled_library ${PLUGIN_BUNDLED_LIBRARIES})
104 | install(FILES "${bundled_library}"
105 | DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
106 | COMPONENT Runtime)
107 | endforeach(bundled_library)
108 |
109 | # Copy the native assets provided by the build.dart from all packages.
110 | set(NATIVE_ASSETS_DIR "${PROJECT_BUILD_DIR}native_assets/linux/")
111 | install(DIRECTORY "${NATIVE_ASSETS_DIR}"
112 | DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
113 | COMPONENT Runtime)
114 |
115 | # Fully re-copy the assets directory on each build to avoid having stale files
116 | # from a previous install.
117 | set(FLUTTER_ASSET_DIR_NAME "flutter_assets")
118 | install(CODE "
119 | file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\")
120 | " COMPONENT Runtime)
121 | install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}"
122 | DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime)
123 |
124 | # Install the AOT library on non-Debug builds only.
125 | if(NOT CMAKE_BUILD_TYPE MATCHES "Debug")
126 | install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
127 | COMPONENT Runtime)
128 | endif()
129 |
--------------------------------------------------------------------------------
/linux/runner/my_application.cc:
--------------------------------------------------------------------------------
1 | #include "my_application.h"
2 |
3 | #include
4 | #ifdef GDK_WINDOWING_X11
5 | #include
6 | #endif
7 |
8 | #include "flutter/generated_plugin_registrant.h"
9 |
10 | struct _MyApplication {
11 | GtkApplication parent_instance;
12 | char** dart_entrypoint_arguments;
13 | };
14 |
15 | G_DEFINE_TYPE(MyApplication, my_application, GTK_TYPE_APPLICATION)
16 |
17 | // Implements GApplication::activate.
18 | static void my_application_activate(GApplication* application) {
19 | MyApplication* self = MY_APPLICATION(application);
20 | GtkWindow* window =
21 | GTK_WINDOW(gtk_application_window_new(GTK_APPLICATION(application)));
22 |
23 | // Use a header bar when running in GNOME as this is the common style used
24 | // by applications and is the setup most users will be using (e.g. Ubuntu
25 | // desktop).
26 | // If running on X and not using GNOME then just use a traditional title bar
27 | // in case the window manager does more exotic layout, e.g. tiling.
28 | // If running on Wayland assume the header bar will work (may need changing
29 | // if future cases occur).
30 | gboolean use_header_bar = TRUE;
31 | #ifdef GDK_WINDOWING_X11
32 | GdkScreen* screen = gtk_window_get_screen(window);
33 | if (GDK_IS_X11_SCREEN(screen)) {
34 | const gchar* wm_name = gdk_x11_screen_get_window_manager_name(screen);
35 | if (g_strcmp0(wm_name, "GNOME Shell") != 0) {
36 | use_header_bar = FALSE;
37 | }
38 | }
39 | #endif
40 | if (use_header_bar) {
41 | GtkHeaderBar* header_bar = GTK_HEADER_BAR(gtk_header_bar_new());
42 | gtk_widget_show(GTK_WIDGET(header_bar));
43 | gtk_header_bar_set_title(header_bar, "thirty_widgets");
44 | gtk_header_bar_set_show_close_button(header_bar, TRUE);
45 | gtk_window_set_titlebar(window, GTK_WIDGET(header_bar));
46 | } else {
47 | gtk_window_set_title(window, "thirty_widgets");
48 | }
49 |
50 | gtk_window_set_default_size(window, 1280, 720);
51 | gtk_widget_show(GTK_WIDGET(window));
52 |
53 | g_autoptr(FlDartProject) project = fl_dart_project_new();
54 | fl_dart_project_set_dart_entrypoint_arguments(project, self->dart_entrypoint_arguments);
55 |
56 | FlView* view = fl_view_new(project);
57 | gtk_widget_show(GTK_WIDGET(view));
58 | gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(view));
59 |
60 | fl_register_plugins(FL_PLUGIN_REGISTRY(view));
61 |
62 | gtk_widget_grab_focus(GTK_WIDGET(view));
63 | }
64 |
65 | // Implements GApplication::local_command_line.
66 | static gboolean my_application_local_command_line(GApplication* application, gchar*** arguments, int* exit_status) {
67 | MyApplication* self = MY_APPLICATION(application);
68 | // Strip out the first argument as it is the binary name.
69 | self->dart_entrypoint_arguments = g_strdupv(*arguments + 1);
70 |
71 | g_autoptr(GError) error = nullptr;
72 | if (!g_application_register(application, nullptr, &error)) {
73 | g_warning("Failed to register: %s", error->message);
74 | *exit_status = 1;
75 | return TRUE;
76 | }
77 |
78 | g_application_activate(application);
79 | *exit_status = 0;
80 |
81 | return TRUE;
82 | }
83 |
84 | // Implements GApplication::startup.
85 | static void my_application_startup(GApplication* application) {
86 | //MyApplication* self = MY_APPLICATION(object);
87 |
88 | // Perform any actions required at application startup.
89 |
90 | G_APPLICATION_CLASS(my_application_parent_class)->startup(application);
91 | }
92 |
93 | // Implements GApplication::shutdown.
94 | static void my_application_shutdown(GApplication* application) {
95 | //MyApplication* self = MY_APPLICATION(object);
96 |
97 | // Perform any actions required at application shutdown.
98 |
99 | G_APPLICATION_CLASS(my_application_parent_class)->shutdown(application);
100 | }
101 |
102 | // Implements GObject::dispose.
103 | static void my_application_dispose(GObject* object) {
104 | MyApplication* self = MY_APPLICATION(object);
105 | g_clear_pointer(&self->dart_entrypoint_arguments, g_strfreev);
106 | G_OBJECT_CLASS(my_application_parent_class)->dispose(object);
107 | }
108 |
109 | static void my_application_class_init(MyApplicationClass* klass) {
110 | G_APPLICATION_CLASS(klass)->activate = my_application_activate;
111 | G_APPLICATION_CLASS(klass)->local_command_line = my_application_local_command_line;
112 | G_APPLICATION_CLASS(klass)->startup = my_application_startup;
113 | G_APPLICATION_CLASS(klass)->shutdown = my_application_shutdown;
114 | G_OBJECT_CLASS(klass)->dispose = my_application_dispose;
115 | }
116 |
117 | static void my_application_init(MyApplication* self) {}
118 |
119 | MyApplication* my_application_new() {
120 | // Set the program name to the application ID, which helps various systems
121 | // like GTK and desktop environments map this running application to its
122 | // corresponding .desktop file. This ensures better integration by allowing
123 | // the application to be recognized beyond its binary name.
124 | g_set_prgname(APPLICATION_ID);
125 |
126 | return MY_APPLICATION(g_object_new(my_application_get_type(),
127 | "application-id", APPLICATION_ID,
128 | "flags", G_APPLICATION_NON_UNIQUE,
129 | nullptr));
130 | }
131 |
--------------------------------------------------------------------------------
/lib/widgets/form.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class FormWidget extends StatefulWidget {
4 | const FormWidget({super.key});
5 |
6 | @override
7 | State createState() => _FormWidgetState();
8 | }
9 |
10 | class _FormWidgetState extends State {
11 | final _formKey = GlobalKey();
12 | String firstName = '';
13 | String lastName = '';
14 | String email = '';
15 | String password = '';
16 |
17 | //----------------FUNCTIONS--------------
18 | trySubmit() {
19 | final isValid = _formKey.currentState!.validate(); // ! is used for null safety and isValid stores whether the form details are valid or not
20 | if(isValid) {
21 | _formKey.currentState!.save(); // first save the form like this then call submitForm() func
22 | submitForm();
23 | }
24 | else {
25 | print('Error');
26 | }
27 | }
28 |
29 | submitForm()
30 | {
31 | print(firstName);
32 | print(lastName);
33 | print(email);
34 | print(password);
35 | }
36 |
37 | @override
38 | Widget build(BuildContext context) {
39 | return Scaffold(
40 | appBar: AppBar(
41 | title: Text("Form",
42 | style: TextStyle(fontWeight: FontWeight.bold,fontSize: 30,fontStyle: FontStyle.italic ),),
43 | centerTitle: true,
44 | backgroundColor: Colors.grey,
45 |
46 | ),
47 | body: Center(
48 | child: Container(
49 | margin: EdgeInsets.all(10),
50 | child: Form(
51 | key: _formKey,
52 | child: Column(
53 | children: [
54 | TextFormField(
55 | decoration: InputDecoration(
56 | hintText: 'Enter first name',
57 |
58 | ) ,
59 | key : ValueKey('firstName'),
60 | validator: (value)
61 | {
62 | if(value.toString().isEmpty){
63 | return 'First name should not be empty';
64 | }
65 | else {
66 | return null;
67 | }
68 | },
69 | // now decide what happens when details by user is valid and form is getting saved
70 | onSaved: (value){
71 | firstName = value.toString();
72 | },
73 | ),
74 |
75 | TextFormField(
76 | decoration: InputDecoration(
77 | hintText: 'Enter Last name'
78 | ) ,
79 | key : ValueKey(lastName),
80 | validator: (value)
81 | {
82 | if(value.toString().isEmpty){
83 | return 'Last name should not be empty';
84 | }
85 | else {
86 | return null;
87 | }
88 | },
89 | // now decide what happens when details by user is valid and form is getting saved
90 | onSaved: (value){
91 | lastName= value.toString();
92 | },
93 | ),
94 |
95 | TextFormField(
96 | decoration: InputDecoration(
97 | hintText: 'Enter Email'
98 | ) ,
99 | key : ValueKey('email'),
100 | validator: (value)
101 | {
102 | if(value == null || value.toString().isEmpty){
103 | return 'Email should not be empty';
104 | }
105 | else if(!value.contains("@")) {
106 | return 'Email must contain @';
107 | }
108 | else {
109 | return null;
110 | }
111 | },
112 | // now decide what happens when details by user is valid and form is getting saved
113 | onSaved: (value){
114 | email = value.toString();
115 | },
116 | ),
117 |
118 | TextFormField(
119 | obscureText: true, // makes password hide
120 | decoration: InputDecoration(
121 |
122 | hintText: 'Enter password'
123 | ) ,
124 | key : ValueKey('password'),
125 | validator: (value)
126 | {
127 | if(value.toString().length<=5){
128 | return 'Minimum length of password must be 6';
129 | }
130 | else {
131 | return null;
132 | }
133 | },
134 | // now decide what happens when details by user is valid and form is getting saved
135 | onSaved: (value){
136 | password = value.toString();
137 | },
138 | ),
139 |
140 | TextButton(
141 | style: TextButton.styleFrom(backgroundColor: Colors.black,
142 | foregroundColor: Colors.white,
143 | shape: RoundedRectangleBorder(
144 | borderRadius: BorderRadius.circular(10),
145 | )),
146 | onPressed: (){
147 | trySubmit(); // call this func whenever user clicks the submit button
148 | }
149 | , child: Text('Submit')),
150 |
151 | ],
152 | ),
153 | ),
154 | )
155 | )
156 | );
157 | }
158 | }
159 |
--------------------------------------------------------------------------------
/lib/widgets/day20.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:google_fonts/google_fonts.dart';
3 |
4 | class Day20 extends StatelessWidget {
5 | const Day20({super.key});
6 |
7 | @override
8 | Widget build(BuildContext context) {
9 | return Scaffold(
10 | appBar: AppBar(
11 | // backgroundColor: Colors.white,
12 | leading: Icon(Icons.arrow_back_ios,color: Colors.white,),
13 | title: Text('subhava.06',style:
14 | GoogleFonts.montserrat(fontSize: 20,fontWeight: FontWeight.bold,),
15 | ),
16 | ),
17 | body: Container(
18 | child: Column(
19 | children: [
20 | Container(
21 | height: 210,
22 | child: Row(children: [
23 | Container(
24 | padding: EdgeInsets.all(10),
25 | width: 180,
26 | // color: Colors.purple,
27 | child: Column(
28 | mainAxisAlignment: MainAxisAlignment.center,
29 | crossAxisAlignment: CrossAxisAlignment.start,
30 | children: [
31 | CircleAvatar(
32 | backgroundImage: AssetImage('assets/profile.jpg'),
33 | radius: 60,
34 | ),
35 | SizedBox(height: 5,),
36 | Text('Subhava Ojha',
37 | style: GoogleFonts.poppins(
38 | fontWeight: FontWeight.w700,
39 | fontSize: 18,
40 | ),
41 | ),
42 | Text('Student | Android Developer',
43 | style: GoogleFonts.poppins(
44 | //fontWeight: FontWeight.w700,
45 | fontSize: 10,
46 | ),),
47 | ],
48 | ),
49 | ),
50 | Expanded(child: Container(
51 |
52 | // color: Colors.orange,
53 | child: Column(
54 | mainAxisAlignment: MainAxisAlignment.start,
55 | children: [
56 | SizedBox(height: 20,),
57 | //contains two containers
58 | Row(
59 | mainAxisAlignment: MainAxisAlignment.spaceEvenly,
60 | children:
61 | [
62 | profileDetails('150', 'Posts'),
63 | SizedBox(width: 7,),
64 | profileDetails('199', 'Following'),
65 | SizedBox(width: 7,),
66 | profileDetails('100', 'Followers'),
67 | ],
68 | ),
69 | SizedBox(height: 10,),
70 | Container(
71 | child: Row(
72 | children: [
73 | Expanded(
74 | child: Container(
75 | height: 50,
76 | child:
77 | ElevatedButton(
78 | style: ButtonStyle(
79 | backgroundColor: WidgetStateProperty.all(Colors.blue),
80 | ),
81 | onPressed: (){},
82 | child: Text('Follow',style: TextStyle(color: Colors.white,),),
83 | ),
84 | ),
85 | ),
86 | SizedBox(width: 10,),
87 | Container(
88 | height: 50,
89 | width: 50,
90 | decoration: BoxDecoration(
91 | border: Border.all(color: Colors.blue,width: 2,),
92 | color: Colors.black,
93 | shape: BoxShape.circle,
94 |
95 | ),
96 | child: Icon(Icons.arrow_downward,color: Colors.blue,),
97 | ),
98 | ],
99 | ),
100 | ),
101 | SizedBox(width: 10,),
102 | ],
103 | ),
104 | ),
105 | ),
106 | ],
107 | ),
108 | ),
109 |
110 | Container(
111 | height: 120,
112 | // color: Colors.blue,
113 | child: ListView.builder(itemCount: 10,
114 | scrollDirection: Axis.horizontal,
115 | itemBuilder: (context,index){
116 | return Column(
117 | children: [
118 | Container(
119 | margin: EdgeInsets.all(5),
120 | height: 80, width: 80,
121 | decoration: BoxDecoration(
122 | image: DecorationImage(image: AssetImage('dora1.jpg'),
123 | fit: BoxFit.cover,),
124 | shape: BoxShape.circle,
125 | color: Colors.orange,
126 | ),
127 | ),
128 | Text('Title'),
129 | ],
130 | );
131 | },),
132 | ),
133 |
134 | /*Container(
135 | height: 100,
136 | color: Colors.green,
137 | ),*/
138 |
139 | //now complete rest of the space will be given to the container
140 | Expanded(child: Container(
141 | // color: Colors.yellow,
142 | child: GridView.builder(gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 3),
143 | itemBuilder: (context,index){
144 | return Container(
145 | decoration: BoxDecoration(
146 | image: DecorationImage(image: AssetImage('dora2.jpg'),fit: BoxFit.fill,),
147 | color: Colors.grey.shade200,
148 | borderRadius: BorderRadius.circular(10),
149 | ),
150 | margin: EdgeInsets.all(5),
151 | height: 150, width: 150,
152 | // color: Colors.red,
153 | );
154 | },),
155 | )
156 | ),
157 | ],
158 | ),
159 | ),
160 | );
161 | }
162 | }
163 |
164 | Widget profileDetails(String text1, String text2)
165 | {
166 | return Column(
167 |
168 | children: [
169 | Text(text1 ,
170 | style: TextStyle(fontSize: 24,),
171 | ),
172 | Text(text2 ,
173 | style: TextStyle(fontSize: 14,),
174 | ),
175 |
176 | ],
177 | );
178 | }
179 |
180 |
--------------------------------------------------------------------------------
/windows/runner/win32_window.cpp:
--------------------------------------------------------------------------------
1 | #include "win32_window.h"
2 |
3 | #include
4 | #include
5 |
6 | #include "resource.h"
7 |
8 | namespace {
9 |
10 | /// Window attribute that enables dark mode window decorations.
11 | ///
12 | /// Redefined in case the developer's machine has a Windows SDK older than
13 | /// version 10.0.22000.0.
14 | /// See: https://docs.microsoft.com/windows/win32/api/dwmapi/ne-dwmapi-dwmwindowattribute
15 | #ifndef DWMWA_USE_IMMERSIVE_DARK_MODE
16 | #define DWMWA_USE_IMMERSIVE_DARK_MODE 20
17 | #endif
18 |
19 | constexpr const wchar_t kWindowClassName[] = L"FLUTTER_RUNNER_WIN32_WINDOW";
20 |
21 | /// Registry key for app theme preference.
22 | ///
23 | /// A value of 0 indicates apps should use dark mode. A non-zero or missing
24 | /// value indicates apps should use light mode.
25 | constexpr const wchar_t kGetPreferredBrightnessRegKey[] =
26 | L"Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize";
27 | constexpr const wchar_t kGetPreferredBrightnessRegValue[] = L"AppsUseLightTheme";
28 |
29 | // The number of Win32Window objects that currently exist.
30 | static int g_active_window_count = 0;
31 |
32 | using EnableNonClientDpiScaling = BOOL __stdcall(HWND hwnd);
33 |
34 | // Scale helper to convert logical scaler values to physical using passed in
35 | // scale factor
36 | int Scale(int source, double scale_factor) {
37 | return static_cast(source * scale_factor);
38 | }
39 |
40 | // Dynamically loads the |EnableNonClientDpiScaling| from the User32 module.
41 | // This API is only needed for PerMonitor V1 awareness mode.
42 | void EnableFullDpiSupportIfAvailable(HWND hwnd) {
43 | HMODULE user32_module = LoadLibraryA("User32.dll");
44 | if (!user32_module) {
45 | return;
46 | }
47 | auto enable_non_client_dpi_scaling =
48 | reinterpret_cast(
49 | GetProcAddress(user32_module, "EnableNonClientDpiScaling"));
50 | if (enable_non_client_dpi_scaling != nullptr) {
51 | enable_non_client_dpi_scaling(hwnd);
52 | }
53 | FreeLibrary(user32_module);
54 | }
55 |
56 | } // namespace
57 |
58 | // Manages the Win32Window's window class registration.
59 | class WindowClassRegistrar {
60 | public:
61 | ~WindowClassRegistrar() = default;
62 |
63 | // Returns the singleton registrar instance.
64 | static WindowClassRegistrar* GetInstance() {
65 | if (!instance_) {
66 | instance_ = new WindowClassRegistrar();
67 | }
68 | return instance_;
69 | }
70 |
71 | // Returns the name of the window class, registering the class if it hasn't
72 | // previously been registered.
73 | const wchar_t* GetWindowClass();
74 |
75 | // Unregisters the window class. Should only be called if there are no
76 | // instances of the window.
77 | void UnregisterWindowClass();
78 |
79 | private:
80 | WindowClassRegistrar() = default;
81 |
82 | static WindowClassRegistrar* instance_;
83 |
84 | bool class_registered_ = false;
85 | };
86 |
87 | WindowClassRegistrar* WindowClassRegistrar::instance_ = nullptr;
88 |
89 | const wchar_t* WindowClassRegistrar::GetWindowClass() {
90 | if (!class_registered_) {
91 | WNDCLASS window_class{};
92 | window_class.hCursor = LoadCursor(nullptr, IDC_ARROW);
93 | window_class.lpszClassName = kWindowClassName;
94 | window_class.style = CS_HREDRAW | CS_VREDRAW;
95 | window_class.cbClsExtra = 0;
96 | window_class.cbWndExtra = 0;
97 | window_class.hInstance = GetModuleHandle(nullptr);
98 | window_class.hIcon =
99 | LoadIcon(window_class.hInstance, MAKEINTRESOURCE(IDI_APP_ICON));
100 | window_class.hbrBackground = 0;
101 | window_class.lpszMenuName = nullptr;
102 | window_class.lpfnWndProc = Win32Window::WndProc;
103 | RegisterClass(&window_class);
104 | class_registered_ = true;
105 | }
106 | return kWindowClassName;
107 | }
108 |
109 | void WindowClassRegistrar::UnregisterWindowClass() {
110 | UnregisterClass(kWindowClassName, nullptr);
111 | class_registered_ = false;
112 | }
113 |
114 | Win32Window::Win32Window() {
115 | ++g_active_window_count;
116 | }
117 |
118 | Win32Window::~Win32Window() {
119 | --g_active_window_count;
120 | Destroy();
121 | }
122 |
123 | bool Win32Window::Create(const std::wstring& title,
124 | const Point& origin,
125 | const Size& size) {
126 | Destroy();
127 |
128 | const wchar_t* window_class =
129 | WindowClassRegistrar::GetInstance()->GetWindowClass();
130 |
131 | const POINT target_point = {static_cast(origin.x),
132 | static_cast(origin.y)};
133 | HMONITOR monitor = MonitorFromPoint(target_point, MONITOR_DEFAULTTONEAREST);
134 | UINT dpi = FlutterDesktopGetDpiForMonitor(monitor);
135 | double scale_factor = dpi / 96.0;
136 |
137 | HWND window = CreateWindow(
138 | window_class, title.c_str(), WS_OVERLAPPEDWINDOW,
139 | Scale(origin.x, scale_factor), Scale(origin.y, scale_factor),
140 | Scale(size.width, scale_factor), Scale(size.height, scale_factor),
141 | nullptr, nullptr, GetModuleHandle(nullptr), this);
142 |
143 | if (!window) {
144 | return false;
145 | }
146 |
147 | UpdateTheme(window);
148 |
149 | return OnCreate();
150 | }
151 |
152 | bool Win32Window::Show() {
153 | return ShowWindow(window_handle_, SW_SHOWNORMAL);
154 | }
155 |
156 | // static
157 | LRESULT CALLBACK Win32Window::WndProc(HWND const window,
158 | UINT const message,
159 | WPARAM const wparam,
160 | LPARAM const lparam) noexcept {
161 | if (message == WM_NCCREATE) {
162 | auto window_struct = reinterpret_cast(lparam);
163 | SetWindowLongPtr(window, GWLP_USERDATA,
164 | reinterpret_cast(window_struct->lpCreateParams));
165 |
166 | auto that = static_cast(window_struct->lpCreateParams);
167 | EnableFullDpiSupportIfAvailable(window);
168 | that->window_handle_ = window;
169 | } else if (Win32Window* that = GetThisFromHandle(window)) {
170 | return that->MessageHandler(window, message, wparam, lparam);
171 | }
172 |
173 | return DefWindowProc(window, message, wparam, lparam);
174 | }
175 |
176 | LRESULT
177 | Win32Window::MessageHandler(HWND hwnd,
178 | UINT const message,
179 | WPARAM const wparam,
180 | LPARAM const lparam) noexcept {
181 | switch (message) {
182 | case WM_DESTROY:
183 | window_handle_ = nullptr;
184 | Destroy();
185 | if (quit_on_close_) {
186 | PostQuitMessage(0);
187 | }
188 | return 0;
189 |
190 | case WM_DPICHANGED: {
191 | auto newRectSize = reinterpret_cast(lparam);
192 | LONG newWidth = newRectSize->right - newRectSize->left;
193 | LONG newHeight = newRectSize->bottom - newRectSize->top;
194 |
195 | SetWindowPos(hwnd, nullptr, newRectSize->left, newRectSize->top, newWidth,
196 | newHeight, SWP_NOZORDER | SWP_NOACTIVATE);
197 |
198 | return 0;
199 | }
200 | case WM_SIZE: {
201 | RECT rect = GetClientArea();
202 | if (child_content_ != nullptr) {
203 | // Size and position the child window.
204 | MoveWindow(child_content_, rect.left, rect.top, rect.right - rect.left,
205 | rect.bottom - rect.top, TRUE);
206 | }
207 | return 0;
208 | }
209 |
210 | case WM_ACTIVATE:
211 | if (child_content_ != nullptr) {
212 | SetFocus(child_content_);
213 | }
214 | return 0;
215 |
216 | case WM_DWMCOLORIZATIONCOLORCHANGED:
217 | UpdateTheme(hwnd);
218 | return 0;
219 | }
220 |
221 | return DefWindowProc(window_handle_, message, wparam, lparam);
222 | }
223 |
224 | void Win32Window::Destroy() {
225 | OnDestroy();
226 |
227 | if (window_handle_) {
228 | DestroyWindow(window_handle_);
229 | window_handle_ = nullptr;
230 | }
231 | if (g_active_window_count == 0) {
232 | WindowClassRegistrar::GetInstance()->UnregisterWindowClass();
233 | }
234 | }
235 |
236 | Win32Window* Win32Window::GetThisFromHandle(HWND const window) noexcept {
237 | return reinterpret_cast(
238 | GetWindowLongPtr(window, GWLP_USERDATA));
239 | }
240 |
241 | void Win32Window::SetChildContent(HWND content) {
242 | child_content_ = content;
243 | SetParent(content, window_handle_);
244 | RECT frame = GetClientArea();
245 |
246 | MoveWindow(content, frame.left, frame.top, frame.right - frame.left,
247 | frame.bottom - frame.top, true);
248 |
249 | SetFocus(child_content_);
250 | }
251 |
252 | RECT Win32Window::GetClientArea() {
253 | RECT frame;
254 | GetClientRect(window_handle_, &frame);
255 | return frame;
256 | }
257 |
258 | HWND Win32Window::GetHandle() {
259 | return window_handle_;
260 | }
261 |
262 | void Win32Window::SetQuitOnClose(bool quit_on_close) {
263 | quit_on_close_ = quit_on_close;
264 | }
265 |
266 | bool Win32Window::OnCreate() {
267 | // No-op; provided for subclasses.
268 | return true;
269 | }
270 |
271 | void Win32Window::OnDestroy() {
272 | // No-op; provided for subclasses.
273 | }
274 |
275 | void Win32Window::UpdateTheme(HWND const window) {
276 | DWORD light_mode;
277 | DWORD light_mode_size = sizeof(light_mode);
278 | LSTATUS result = RegGetValue(HKEY_CURRENT_USER, kGetPreferredBrightnessRegKey,
279 | kGetPreferredBrightnessRegValue,
280 | RRF_RT_REG_DWORD, nullptr, &light_mode,
281 | &light_mode_size);
282 |
283 | if (result == ERROR_SUCCESS) {
284 | BOOL enable_dark_mode = light_mode == 0;
285 | DwmSetWindowAttribute(window, DWMWA_USE_IMMERSIVE_DARK_MODE,
286 | &enable_dark_mode, sizeof(enable_dark_mode));
287 | }
288 | }
289 |
--------------------------------------------------------------------------------
/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | animated_text_kit:
5 | dependency: "direct main"
6 | description:
7 | name: animated_text_kit
8 | sha256: adba517adb7e6adeb1eb5e1c8a147dd7bc664dfdf2f5e92226b572a91393a93d
9 | url: "https://pub.dev"
10 | source: hosted
11 | version: "4.2.3"
12 | async:
13 | dependency: transitive
14 | description:
15 | name: async
16 | sha256: d2872f9c19731c2e5f10444b14686eb7cc85c76274bd6c16e1816bff9a3bab63
17 | url: "https://pub.dev"
18 | source: hosted
19 | version: "2.12.0"
20 | boolean_selector:
21 | dependency: transitive
22 | description:
23 | name: boolean_selector
24 | sha256: "8aab1771e1243a5063b8b0ff68042d67334e3feab9e95b9490f9a6ebf73b42ea"
25 | url: "https://pub.dev"
26 | source: hosted
27 | version: "2.1.2"
28 | cached_network_image:
29 | dependency: "direct main"
30 | description:
31 | name: cached_network_image
32 | sha256: "7c1183e361e5c8b0a0f21a28401eecdbde252441106a9816400dd4c2b2424916"
33 | url: "https://pub.dev"
34 | source: hosted
35 | version: "3.4.1"
36 | cached_network_image_platform_interface:
37 | dependency: transitive
38 | description:
39 | name: cached_network_image_platform_interface
40 | sha256: "35814b016e37fbdc91f7ae18c8caf49ba5c88501813f73ce8a07027a395e2829"
41 | url: "https://pub.dev"
42 | source: hosted
43 | version: "4.1.1"
44 | cached_network_image_web:
45 | dependency: transitive
46 | description:
47 | name: cached_network_image_web
48 | sha256: "980842f4e8e2535b8dbd3d5ca0b1f0ba66bf61d14cc3a17a9b4788a3685ba062"
49 | url: "https://pub.dev"
50 | source: hosted
51 | version: "1.3.1"
52 | characters:
53 | dependency: transitive
54 | description:
55 | name: characters
56 | sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803
57 | url: "https://pub.dev"
58 | source: hosted
59 | version: "1.4.0"
60 | clock:
61 | dependency: transitive
62 | description:
63 | name: clock
64 | sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b
65 | url: "https://pub.dev"
66 | source: hosted
67 | version: "1.1.2"
68 | collection:
69 | dependency: transitive
70 | description:
71 | name: collection
72 | sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76"
73 | url: "https://pub.dev"
74 | source: hosted
75 | version: "1.19.1"
76 | cross_file:
77 | dependency: transitive
78 | description:
79 | name: cross_file
80 | sha256: "7caf6a750a0c04effbb52a676dce9a4a592e10ad35c34d6d2d0e4811160d5670"
81 | url: "https://pub.dev"
82 | source: hosted
83 | version: "0.3.4+2"
84 | crypto:
85 | dependency: transitive
86 | description:
87 | name: crypto
88 | sha256: "1e445881f28f22d6140f181e07737b22f1e099a5e1ff94b0af2f9e4a463f4855"
89 | url: "https://pub.dev"
90 | source: hosted
91 | version: "3.0.6"
92 | cupertino_icons:
93 | dependency: "direct main"
94 | description:
95 | name: cupertino_icons
96 | sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6
97 | url: "https://pub.dev"
98 | source: hosted
99 | version: "1.0.8"
100 | fake_async:
101 | dependency: transitive
102 | description:
103 | name: fake_async
104 | sha256: "6a95e56b2449df2273fd8c45a662d6947ce1ebb7aafe80e550a3f68297f3cacc"
105 | url: "https://pub.dev"
106 | source: hosted
107 | version: "1.3.2"
108 | ffi:
109 | dependency: transitive
110 | description:
111 | name: ffi
112 | sha256: "289279317b4b16eb2bb7e271abccd4bf84ec9bdcbe999e278a94b804f5630418"
113 | url: "https://pub.dev"
114 | source: hosted
115 | version: "2.1.4"
116 | file:
117 | dependency: transitive
118 | description:
119 | name: file
120 | sha256: a3b4f84adafef897088c160faf7dfffb7696046cb13ae90b508c2cbc95d3b8d4
121 | url: "https://pub.dev"
122 | source: hosted
123 | version: "7.0.1"
124 | file_selector_linux:
125 | dependency: transitive
126 | description:
127 | name: file_selector_linux
128 | sha256: "54cbbd957e1156d29548c7d9b9ec0c0ebb6de0a90452198683a7d23aed617a33"
129 | url: "https://pub.dev"
130 | source: hosted
131 | version: "0.9.3+2"
132 | file_selector_macos:
133 | dependency: transitive
134 | description:
135 | name: file_selector_macos
136 | sha256: "271ab9986df0c135d45c3cdb6bd0faa5db6f4976d3e4b437cf7d0f258d941bfc"
137 | url: "https://pub.dev"
138 | source: hosted
139 | version: "0.9.4+2"
140 | file_selector_platform_interface:
141 | dependency: transitive
142 | description:
143 | name: file_selector_platform_interface
144 | sha256: a3994c26f10378a039faa11de174d7b78eb8f79e4dd0af2a451410c1a5c3f66b
145 | url: "https://pub.dev"
146 | source: hosted
147 | version: "2.6.2"
148 | file_selector_windows:
149 | dependency: transitive
150 | description:
151 | name: file_selector_windows
152 | sha256: "320fcfb6f33caa90f0b58380489fc5ac05d99ee94b61aa96ec2bff0ba81d3c2b"
153 | url: "https://pub.dev"
154 | source: hosted
155 | version: "0.9.3+4"
156 | fixnum:
157 | dependency: transitive
158 | description:
159 | name: fixnum
160 | sha256: b6dc7065e46c974bc7c5f143080a6764ec7a4be6da1285ececdc37be96de53be
161 | url: "https://pub.dev"
162 | source: hosted
163 | version: "1.1.1"
164 | flutter:
165 | dependency: "direct main"
166 | description: flutter
167 | source: sdk
168 | version: "0.0.0"
169 | flutter_cache_manager:
170 | dependency: transitive
171 | description:
172 | name: flutter_cache_manager
173 | sha256: "400b6592f16a4409a7f2bb929a9a7e38c72cceb8ffb99ee57bbf2cb2cecf8386"
174 | url: "https://pub.dev"
175 | source: hosted
176 | version: "3.4.1"
177 | flutter_lints:
178 | dependency: "direct dev"
179 | description:
180 | name: flutter_lints
181 | sha256: "5398f14efa795ffb7a33e9b6a08798b26a180edac4ad7db3f231e40f82ce11e1"
182 | url: "https://pub.dev"
183 | source: hosted
184 | version: "5.0.0"
185 | flutter_plugin_android_lifecycle:
186 | dependency: transitive
187 | description:
188 | name: flutter_plugin_android_lifecycle
189 | sha256: "5a1e6fb2c0561958d7e4c33574674bda7b77caaca7a33b758876956f2902eea3"
190 | url: "https://pub.dev"
191 | source: hosted
192 | version: "2.0.27"
193 | flutter_test:
194 | dependency: "direct dev"
195 | description: flutter
196 | source: sdk
197 | version: "0.0.0"
198 | flutter_web_plugins:
199 | dependency: transitive
200 | description: flutter
201 | source: sdk
202 | version: "0.0.0"
203 | fluttertoast:
204 | dependency: "direct main"
205 | description:
206 | name: fluttertoast
207 | sha256: "25e51620424d92d3db3832464774a6143b5053f15e382d8ffbfd40b6e795dcf1"
208 | url: "https://pub.dev"
209 | source: hosted
210 | version: "8.2.12"
211 | geolocator:
212 | dependency: "direct main"
213 | description:
214 | name: geolocator
215 | sha256: afebc912cbe6496e8823e064ca519afb5610072bb9c4a9feea715f6feb4f7f28
216 | url: "https://pub.dev"
217 | source: hosted
218 | version: "13.0.3"
219 | geolocator_android:
220 | dependency: transitive
221 | description:
222 | name: geolocator_android
223 | sha256: fcb1760a50d7500deca37c9a666785c047139b5f9ee15aa5469fae7dbbe3170d
224 | url: "https://pub.dev"
225 | source: hosted
226 | version: "4.6.2"
227 | geolocator_apple:
228 | dependency: transitive
229 | description:
230 | name: geolocator_apple
231 | sha256: dbdd8789d5aaf14cf69f74d4925ad1336b4433a6efdf2fce91e8955dc921bf22
232 | url: "https://pub.dev"
233 | source: hosted
234 | version: "2.3.13"
235 | geolocator_platform_interface:
236 | dependency: transitive
237 | description:
238 | name: geolocator_platform_interface
239 | sha256: "30cb64f0b9adcc0fb36f628b4ebf4f731a2961a0ebd849f4b56200205056fe67"
240 | url: "https://pub.dev"
241 | source: hosted
242 | version: "4.2.6"
243 | geolocator_web:
244 | dependency: transitive
245 | description:
246 | name: geolocator_web
247 | sha256: e54434b2ce9c677759a188d7e32e950802f79a9e9f45728239404bece0f1bd8d
248 | url: "https://pub.dev"
249 | source: hosted
250 | version: "4.1.2"
251 | geolocator_windows:
252 | dependency: transitive
253 | description:
254 | name: geolocator_windows
255 | sha256: "175435404d20278ffd220de83c2ca293b73db95eafbdc8131fe8609be1421eb6"
256 | url: "https://pub.dev"
257 | source: hosted
258 | version: "0.2.5"
259 | google_fonts:
260 | dependency: "direct main"
261 | description:
262 | name: google_fonts
263 | sha256: b1ac0fe2832c9cc95e5e88b57d627c5e68c223b9657f4b96e1487aa9098c7b82
264 | url: "https://pub.dev"
265 | source: hosted
266 | version: "6.2.1"
267 | http:
268 | dependency: transitive
269 | description:
270 | name: http
271 | sha256: fe7ab022b76f3034adc518fb6ea04a82387620e19977665ea18d30a1cf43442f
272 | url: "https://pub.dev"
273 | source: hosted
274 | version: "1.3.0"
275 | http_parser:
276 | dependency: transitive
277 | description:
278 | name: http_parser
279 | sha256: "178d74305e7866013777bab2c3d8726205dc5a4dd935297175b19a23a2e66571"
280 | url: "https://pub.dev"
281 | source: hosted
282 | version: "4.1.2"
283 | image_picker:
284 | dependency: "direct main"
285 | description:
286 | name: image_picker
287 | sha256: "021834d9c0c3de46bf0fe40341fa07168407f694d9b2bb18d532dc1261867f7a"
288 | url: "https://pub.dev"
289 | source: hosted
290 | version: "1.1.2"
291 | image_picker_android:
292 | dependency: transitive
293 | description:
294 | name: image_picker_android
295 | sha256: "8bd392ba8b0c8957a157ae0dc9fcf48c58e6c20908d5880aea1d79734df090e9"
296 | url: "https://pub.dev"
297 | source: hosted
298 | version: "0.8.12+22"
299 | image_picker_for_web:
300 | dependency: transitive
301 | description:
302 | name: image_picker_for_web
303 | sha256: "717eb042ab08c40767684327be06a5d8dbb341fe791d514e4b92c7bbe1b7bb83"
304 | url: "https://pub.dev"
305 | source: hosted
306 | version: "3.0.6"
307 | image_picker_ios:
308 | dependency: transitive
309 | description:
310 | name: image_picker_ios
311 | sha256: "05da758e67bc7839e886b3959848aa6b44ff123ab4b28f67891008afe8ef9100"
312 | url: "https://pub.dev"
313 | source: hosted
314 | version: "0.8.12+2"
315 | image_picker_linux:
316 | dependency: transitive
317 | description:
318 | name: image_picker_linux
319 | sha256: "34a65f6740df08bbbeb0a1abd8e6d32107941fd4868f67a507b25601651022c9"
320 | url: "https://pub.dev"
321 | source: hosted
322 | version: "0.2.1+2"
323 | image_picker_macos:
324 | dependency: transitive
325 | description:
326 | name: image_picker_macos
327 | sha256: "1b90ebbd9dcf98fb6c1d01427e49a55bd96b5d67b8c67cf955d60a5de74207c1"
328 | url: "https://pub.dev"
329 | source: hosted
330 | version: "0.2.1+2"
331 | image_picker_platform_interface:
332 | dependency: transitive
333 | description:
334 | name: image_picker_platform_interface
335 | sha256: "886d57f0be73c4b140004e78b9f28a8914a09e50c2d816bdd0520051a71236a0"
336 | url: "https://pub.dev"
337 | source: hosted
338 | version: "2.10.1"
339 | image_picker_windows:
340 | dependency: transitive
341 | description:
342 | name: image_picker_windows
343 | sha256: "6ad07afc4eb1bc25f3a01084d28520496c4a3bb0cb13685435838167c9dcedeb"
344 | url: "https://pub.dev"
345 | source: hosted
346 | version: "0.2.1+1"
347 | leak_tracker:
348 | dependency: transitive
349 | description:
350 | name: leak_tracker
351 | sha256: c35baad643ba394b40aac41080300150a4f08fd0fd6a10378f8f7c6bc161acec
352 | url: "https://pub.dev"
353 | source: hosted
354 | version: "10.0.8"
355 | leak_tracker_flutter_testing:
356 | dependency: transitive
357 | description:
358 | name: leak_tracker_flutter_testing
359 | sha256: f8b613e7e6a13ec79cfdc0e97638fddb3ab848452eff057653abd3edba760573
360 | url: "https://pub.dev"
361 | source: hosted
362 | version: "3.0.9"
363 | leak_tracker_testing:
364 | dependency: transitive
365 | description:
366 | name: leak_tracker_testing
367 | sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3"
368 | url: "https://pub.dev"
369 | source: hosted
370 | version: "3.0.1"
371 | lints:
372 | dependency: transitive
373 | description:
374 | name: lints
375 | sha256: c35bb79562d980e9a453fc715854e1ed39e24e7d0297a880ef54e17f9874a9d7
376 | url: "https://pub.dev"
377 | source: hosted
378 | version: "5.1.1"
379 | location:
380 | dependency: "direct main"
381 | description:
382 | name: location
383 | sha256: c2c4304071ec860525d5c50d142410072f8620c1d9f74874811af2e804e1a9c8
384 | url: "https://pub.dev"
385 | source: hosted
386 | version: "8.0.0"
387 | location_platform_interface:
388 | dependency: transitive
389 | description:
390 | name: location_platform_interface
391 | sha256: a3404ea6d74e89b121630be62ed8edcc7b39fd108bd19805d0ae55c397135dd7
392 | url: "https://pub.dev"
393 | source: hosted
394 | version: "6.0.0"
395 | location_web:
396 | dependency: transitive
397 | description:
398 | name: location_web
399 | sha256: "744bdff53dc455a2dc9a34474c49cde364d4fbef2aee009f8b0b4b68570c27a1"
400 | url: "https://pub.dev"
401 | source: hosted
402 | version: "6.0.0"
403 | matcher:
404 | dependency: transitive
405 | description:
406 | name: matcher
407 | sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2
408 | url: "https://pub.dev"
409 | source: hosted
410 | version: "0.12.17"
411 | material_color_utilities:
412 | dependency: transitive
413 | description:
414 | name: material_color_utilities
415 | sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec
416 | url: "https://pub.dev"
417 | source: hosted
418 | version: "0.11.1"
419 | meta:
420 | dependency: transitive
421 | description:
422 | name: meta
423 | sha256: e3641ec5d63ebf0d9b41bd43201a66e3fc79a65db5f61fc181f04cd27aab950c
424 | url: "https://pub.dev"
425 | source: hosted
426 | version: "1.16.0"
427 | mime:
428 | dependency: transitive
429 | description:
430 | name: mime
431 | sha256: "41a20518f0cb1256669420fdba0cd90d21561e560ac240f26ef8322e45bb7ed6"
432 | url: "https://pub.dev"
433 | source: hosted
434 | version: "2.0.0"
435 | octo_image:
436 | dependency: transitive
437 | description:
438 | name: octo_image
439 | sha256: "34faa6639a78c7e3cbe79be6f9f96535867e879748ade7d17c9b1ae7536293bd"
440 | url: "https://pub.dev"
441 | source: hosted
442 | version: "2.1.0"
443 | path:
444 | dependency: transitive
445 | description:
446 | name: path
447 | sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5"
448 | url: "https://pub.dev"
449 | source: hosted
450 | version: "1.9.1"
451 | path_provider:
452 | dependency: transitive
453 | description:
454 | name: path_provider
455 | sha256: "50c5dd5b6e1aaf6fb3a78b33f6aa3afca52bf903a8a5298f53101fdaee55bbcd"
456 | url: "https://pub.dev"
457 | source: hosted
458 | version: "2.1.5"
459 | path_provider_android:
460 | dependency: transitive
461 | description:
462 | name: path_provider_android
463 | sha256: "0ca7359dad67fd7063cb2892ab0c0737b2daafd807cf1acecd62374c8fae6c12"
464 | url: "https://pub.dev"
465 | source: hosted
466 | version: "2.2.16"
467 | path_provider_foundation:
468 | dependency: transitive
469 | description:
470 | name: path_provider_foundation
471 | sha256: "4843174df4d288f5e29185bd6e72a6fbdf5a4a4602717eed565497429f179942"
472 | url: "https://pub.dev"
473 | source: hosted
474 | version: "2.4.1"
475 | path_provider_linux:
476 | dependency: transitive
477 | description:
478 | name: path_provider_linux
479 | sha256: f7a1fe3a634fe7734c8d3f2766ad746ae2a2884abe22e241a8b301bf5cac3279
480 | url: "https://pub.dev"
481 | source: hosted
482 | version: "2.2.1"
483 | path_provider_platform_interface:
484 | dependency: transitive
485 | description:
486 | name: path_provider_platform_interface
487 | sha256: "88f5779f72ba699763fa3a3b06aa4bf6de76c8e5de842cf6f29e2e06476c2334"
488 | url: "https://pub.dev"
489 | source: hosted
490 | version: "2.1.2"
491 | path_provider_windows:
492 | dependency: transitive
493 | description:
494 | name: path_provider_windows
495 | sha256: bd6f00dbd873bfb70d0761682da2b3a2c2fccc2b9e84c495821639601d81afe7
496 | url: "https://pub.dev"
497 | source: hosted
498 | version: "2.3.0"
499 | platform:
500 | dependency: transitive
501 | description:
502 | name: platform
503 | sha256: "5d6b1b0036a5f331ebc77c850ebc8506cbc1e9416c27e59b439f917a902a4984"
504 | url: "https://pub.dev"
505 | source: hosted
506 | version: "3.1.6"
507 | plugin_platform_interface:
508 | dependency: transitive
509 | description:
510 | name: plugin_platform_interface
511 | sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02"
512 | url: "https://pub.dev"
513 | source: hosted
514 | version: "2.1.8"
515 | rxdart:
516 | dependency: transitive
517 | description:
518 | name: rxdart
519 | sha256: "5c3004a4a8dbb94bd4bf5412a4def4acdaa12e12f269737a5751369e12d1a962"
520 | url: "https://pub.dev"
521 | source: hosted
522 | version: "0.28.0"
523 | sky_engine:
524 | dependency: transitive
525 | description: flutter
526 | source: sdk
527 | version: "0.0.0"
528 | source_span:
529 | dependency: transitive
530 | description:
531 | name: source_span
532 | sha256: "254ee5351d6cb365c859e20ee823c3bb479bf4a293c22d17a9f1bf144ce86f7c"
533 | url: "https://pub.dev"
534 | source: hosted
535 | version: "1.10.1"
536 | sprintf:
537 | dependency: transitive
538 | description:
539 | name: sprintf
540 | sha256: "1fc9ffe69d4df602376b52949af107d8f5703b77cda567c4d7d86a0693120f23"
541 | url: "https://pub.dev"
542 | source: hosted
543 | version: "7.0.0"
544 | sqflite:
545 | dependency: transitive
546 | description:
547 | name: sqflite
548 | sha256: e2297b1da52f127bc7a3da11439985d9b536f75070f3325e62ada69a5c585d03
549 | url: "https://pub.dev"
550 | source: hosted
551 | version: "2.4.2"
552 | sqflite_android:
553 | dependency: transitive
554 | description:
555 | name: sqflite_android
556 | sha256: "2b3070c5fa881839f8b402ee4a39c1b4d561704d4ebbbcfb808a119bc2a1701b"
557 | url: "https://pub.dev"
558 | source: hosted
559 | version: "2.4.1"
560 | sqflite_common:
561 | dependency: transitive
562 | description:
563 | name: sqflite_common
564 | sha256: "84731e8bfd8303a3389903e01fb2141b6e59b5973cacbb0929021df08dddbe8b"
565 | url: "https://pub.dev"
566 | source: hosted
567 | version: "2.5.5"
568 | sqflite_darwin:
569 | dependency: transitive
570 | description:
571 | name: sqflite_darwin
572 | sha256: "279832e5cde3fe99e8571879498c9211f3ca6391b0d818df4e17d9fff5c6ccb3"
573 | url: "https://pub.dev"
574 | source: hosted
575 | version: "2.4.2"
576 | sqflite_platform_interface:
577 | dependency: transitive
578 | description:
579 | name: sqflite_platform_interface
580 | sha256: "8dd4515c7bdcae0a785b0062859336de775e8c65db81ae33dd5445f35be61920"
581 | url: "https://pub.dev"
582 | source: hosted
583 | version: "2.4.0"
584 | stack_trace:
585 | dependency: transitive
586 | description:
587 | name: stack_trace
588 | sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1"
589 | url: "https://pub.dev"
590 | source: hosted
591 | version: "1.12.1"
592 | stream_channel:
593 | dependency: transitive
594 | description:
595 | name: stream_channel
596 | sha256: "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d"
597 | url: "https://pub.dev"
598 | source: hosted
599 | version: "2.1.4"
600 | string_scanner:
601 | dependency: transitive
602 | description:
603 | name: string_scanner
604 | sha256: "921cd31725b72fe181906c6a94d987c78e3b98c2e205b397ea399d4054872b43"
605 | url: "https://pub.dev"
606 | source: hosted
607 | version: "1.4.1"
608 | synchronized:
609 | dependency: transitive
610 | description:
611 | name: synchronized
612 | sha256: "0669c70faae6270521ee4f05bffd2919892d42d1276e6c495be80174b6bc0ef6"
613 | url: "https://pub.dev"
614 | source: hosted
615 | version: "3.3.1"
616 | term_glyph:
617 | dependency: transitive
618 | description:
619 | name: term_glyph
620 | sha256: "7f554798625ea768a7518313e58f83891c7f5024f88e46e7182a4558850a4b8e"
621 | url: "https://pub.dev"
622 | source: hosted
623 | version: "1.2.2"
624 | test_api:
625 | dependency: transitive
626 | description:
627 | name: test_api
628 | sha256: fb31f383e2ee25fbbfe06b40fe21e1e458d14080e3c67e7ba0acfde4df4e0bbd
629 | url: "https://pub.dev"
630 | source: hosted
631 | version: "0.7.4"
632 | typed_data:
633 | dependency: transitive
634 | description:
635 | name: typed_data
636 | sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006
637 | url: "https://pub.dev"
638 | source: hosted
639 | version: "1.4.0"
640 | uuid:
641 | dependency: transitive
642 | description:
643 | name: uuid
644 | sha256: a5be9ef6618a7ac1e964353ef476418026db906c4facdedaa299b7a2e71690ff
645 | url: "https://pub.dev"
646 | source: hosted
647 | version: "4.5.1"
648 | vector_math:
649 | dependency: transitive
650 | description:
651 | name: vector_math
652 | sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
653 | url: "https://pub.dev"
654 | source: hosted
655 | version: "2.1.4"
656 | vm_service:
657 | dependency: transitive
658 | description:
659 | name: vm_service
660 | sha256: "0968250880a6c5fe7edc067ed0a13d4bae1577fe2771dcf3010d52c4a9d3ca14"
661 | url: "https://pub.dev"
662 | source: hosted
663 | version: "14.3.1"
664 | web:
665 | dependency: transitive
666 | description:
667 | name: web
668 | sha256: "868d88a33d8a87b18ffc05f9f030ba328ffefba92d6c127917a2ba740f9cfe4a"
669 | url: "https://pub.dev"
670 | source: hosted
671 | version: "1.1.1"
672 | xdg_directories:
673 | dependency: transitive
674 | description:
675 | name: xdg_directories
676 | sha256: "7a3f37b05d989967cdddcbb571f1ea834867ae2faa29725fd085180e0883aa15"
677 | url: "https://pub.dev"
678 | source: hosted
679 | version: "1.1.0"
680 | sdks:
681 | dart: ">=3.7.0 <4.0.0"
682 | flutter: ">=3.27.0"
683 |
--------------------------------------------------------------------------------