Compare commits
No commits in common. "22aca9618e1857ba99142f05c305de33479a4dbb" and "644955dfc8084cfa4415f5d318d6b726acfeb4cb" have entirely different histories.
22aca9618e
...
644955dfc8
5 changed files with 43 additions and 183 deletions
125
.gitignore
vendored
125
.gitignore
vendored
|
|
@ -1,9 +1,5 @@
|
||||||
# Do not remove or rename entries in this file, only add new ones
|
|
||||||
# See https://github.com/flutter/flutter/issues/128635 for more context.
|
|
||||||
|
|
||||||
# Miscellaneous
|
# Miscellaneous
|
||||||
*.class
|
*.class
|
||||||
*.lock
|
|
||||||
*.log
|
*.log
|
||||||
*.pyc
|
*.pyc
|
||||||
*.swp
|
*.swp
|
||||||
|
|
@ -12,6 +8,7 @@
|
||||||
.buildlog/
|
.buildlog/
|
||||||
.history
|
.history
|
||||||
.svn/
|
.svn/
|
||||||
|
migrate_working_dir/
|
||||||
|
|
||||||
# IntelliJ related
|
# IntelliJ related
|
||||||
*.iml
|
*.iml
|
||||||
|
|
@ -19,120 +16,28 @@
|
||||||
*.iws
|
*.iws
|
||||||
.idea/
|
.idea/
|
||||||
|
|
||||||
# Visual Studio Code related
|
# The .vscode folder contains launch configuration and tasks you configure in
|
||||||
.classpath
|
# VS Code which you may wish to be included in version control, so this line
|
||||||
.project
|
# is commented out by default.
|
||||||
.settings/
|
#.vscode/
|
||||||
.vscode/*
|
|
||||||
|
|
||||||
# Flutter repo-specific
|
|
||||||
/bin/cache/
|
|
||||||
/bin/internal/bootstrap.bat
|
|
||||||
/bin/internal/bootstrap.sh
|
|
||||||
/bin/mingit/
|
|
||||||
/dev/benchmarks/mega_gallery/
|
|
||||||
/dev/bots/.recipe_deps
|
|
||||||
/dev/bots/android_tools/
|
|
||||||
/dev/devicelab/ABresults*.json
|
|
||||||
/dev/docs/doc/
|
|
||||||
/dev/docs/api_docs.zip
|
|
||||||
/dev/docs/flutter.docs.zip
|
|
||||||
/dev/docs/lib/
|
|
||||||
/dev/docs/pubspec.yaml
|
|
||||||
/dev/integration_tests/**/xcuserdata
|
|
||||||
/dev/integration_tests/**/Pods
|
|
||||||
/packages/flutter/coverage/
|
|
||||||
version
|
|
||||||
analysis_benchmark.json
|
|
||||||
|
|
||||||
# packages file containing multi-root paths
|
|
||||||
.packages.generated
|
|
||||||
|
|
||||||
# Flutter/Dart/Pub related
|
# Flutter/Dart/Pub related
|
||||||
**/doc/api/
|
**/doc/api/
|
||||||
|
**/ios/Flutter/.last_build_id
|
||||||
.dart_tool/
|
.dart_tool/
|
||||||
.flutter-plugins
|
.flutter-plugins
|
||||||
.flutter-plugins-dependencies
|
.flutter-plugins-dependencies
|
||||||
**/generated_plugin_registrant.dart
|
|
||||||
.packages
|
|
||||||
.pub-preload-cache/
|
|
||||||
.pub-cache/
|
.pub-cache/
|
||||||
.pub/
|
.pub/
|
||||||
build/
|
/build/
|
||||||
flutter_*.png
|
|
||||||
linked_*.ds
|
|
||||||
unlinked.ds
|
|
||||||
unlinked_spec.ds
|
|
||||||
|
|
||||||
# Android related
|
# Symbolication related
|
||||||
**/android/**/gradle-wrapper.jar
|
|
||||||
.gradle/
|
|
||||||
**/android/captures/
|
|
||||||
**/android/gradlew
|
|
||||||
**/android/gradlew.bat
|
|
||||||
**/android/local.properties
|
|
||||||
**/android/**/GeneratedPluginRegistrant.java
|
|
||||||
**/android/key.properties
|
|
||||||
*.jks
|
|
||||||
|
|
||||||
# iOS/XCode related
|
|
||||||
**/ios/**/*.mode1v3
|
|
||||||
**/ios/**/*.mode2v3
|
|
||||||
**/ios/**/*.moved-aside
|
|
||||||
**/ios/**/*.pbxuser
|
|
||||||
**/ios/**/*.perspectivev3
|
|
||||||
**/ios/**/*sync/
|
|
||||||
**/ios/**/.sconsign.dblite
|
|
||||||
**/ios/**/.tags*
|
|
||||||
**/ios/**/.vagrant/
|
|
||||||
**/ios/**/DerivedData/
|
|
||||||
**/ios/**/Icon?
|
|
||||||
**/ios/**/Pods/
|
|
||||||
**/ios/**/.symlinks/
|
|
||||||
**/ios/**/profile
|
|
||||||
**/ios/**/xcuserdata
|
|
||||||
**/ios/.generated/
|
|
||||||
**/ios/Flutter/.last_build_id
|
|
||||||
**/ios/Flutter/App.framework
|
|
||||||
**/ios/Flutter/Flutter.framework
|
|
||||||
**/ios/Flutter/Flutter.podspec
|
|
||||||
**/ios/Flutter/Generated.xcconfig
|
|
||||||
**/ios/Flutter/ephemeral
|
|
||||||
**/ios/Flutter/app.flx
|
|
||||||
**/ios/Flutter/app.zip
|
|
||||||
**/ios/Flutter/flutter_assets/
|
|
||||||
**/ios/Flutter/flutter_export_environment.sh
|
|
||||||
**/ios/ServiceDefinitions.json
|
|
||||||
**/ios/Runner/GeneratedPluginRegistrant.*
|
|
||||||
|
|
||||||
# macOS
|
|
||||||
**/Flutter/ephemeral/
|
|
||||||
**/Pods/
|
|
||||||
**/macos/Flutter/GeneratedPluginRegistrant.swift
|
|
||||||
**/macos/Flutter/ephemeral
|
|
||||||
**/xcuserdata/
|
|
||||||
|
|
||||||
# Windows
|
|
||||||
**/windows/flutter/generated_plugin_registrant.cc
|
|
||||||
**/windows/flutter/generated_plugin_registrant.h
|
|
||||||
**/windows/flutter/generated_plugins.cmake
|
|
||||||
|
|
||||||
# Linux
|
|
||||||
**/linux/flutter/generated_plugin_registrant.cc
|
|
||||||
**/linux/flutter/generated_plugin_registrant.h
|
|
||||||
**/linux/flutter/generated_plugins.cmake
|
|
||||||
|
|
||||||
# Coverage
|
|
||||||
coverage/
|
|
||||||
|
|
||||||
# Symbols
|
|
||||||
app.*.symbols
|
app.*.symbols
|
||||||
|
|
||||||
# Exceptions to above rules.
|
# Obfuscation related
|
||||||
!**/ios/**/default.mode1v3
|
app.*.map.json
|
||||||
!**/ios/**/default.mode2v3
|
|
||||||
!**/ios/**/default.pbxuser
|
# Android Studio will place build artifacts here
|
||||||
!**/ios/**/default.perspectivev3
|
/android/app/debug
|
||||||
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
|
/android/app/profile
|
||||||
!/dev/ci/**/Gemfile.lock
|
/android/app/release
|
||||||
!.vscode/settings.json
|
|
||||||
|
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
import 'package:flutter/material.dart';
|
|
||||||
import 'package:temperaturdecke/widgets/modal_wrapper.dart';
|
|
||||||
|
|
||||||
class AddWoolModal extends StatelessWidget {
|
|
||||||
const AddWoolModal({super.key});
|
|
||||||
|
|
||||||
@override
|
|
||||||
Widget build(BuildContext context) {
|
|
||||||
return ModalWrapper(
|
|
||||||
Column(
|
|
||||||
children: [
|
|
||||||
TextField(),
|
|
||||||
TextField(),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
title: "Wolle hinzufügen",
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'package:temperaturdecke/database.dart';
|
import 'package:temperaturdecke/database.dart';
|
||||||
import 'package:temperaturdecke/screens/add_wool_modal.dart';
|
|
||||||
import 'package:temperaturdecke/widgets/cards/wool_card.dart';
|
import 'package:temperaturdecke/widgets/cards/wool_card.dart';
|
||||||
|
|
||||||
class WoolScreen extends StatelessWidget {
|
class WoolScreen extends StatelessWidget {
|
||||||
|
|
@ -21,46 +20,32 @@ class WoolScreen extends StatelessWidget {
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
// Hier können Sie den Inhalt basierend auf den geladenen Daten anzeigen
|
// Hier können Sie den Inhalt basierend auf den geladenen Daten anzeigen
|
||||||
return Scaffold(
|
return Column(
|
||||||
floatingActionButton: FloatingActionButton(
|
children: [
|
||||||
onPressed: () {
|
Expanded(
|
||||||
showModalBottomSheet(
|
child: ListView.builder(
|
||||||
showDragHandle: true,
|
itemBuilder: (BuildContext context, int index) {
|
||||||
context: context,
|
return Padding(
|
||||||
builder: (context) {
|
padding: const EdgeInsets.symmetric(horizontal: 10),
|
||||||
return AddWoolModal();
|
child: Column(
|
||||||
|
children: [
|
||||||
|
Woolcard(
|
||||||
|
index,
|
||||||
|
snapshot.data[index].manufacture,
|
||||||
|
snapshot.data[index].title,
|
||||||
|
snapshot.data[index].color,
|
||||||
|
),
|
||||||
|
const SizedBox(
|
||||||
|
height: 15,
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
);
|
||||||
},
|
},
|
||||||
);
|
itemCount: snapshot.data.length,
|
||||||
},
|
|
||||||
child: Icon(Icons.add),
|
|
||||||
),
|
|
||||||
body: Column(
|
|
||||||
children: [
|
|
||||||
Expanded(
|
|
||||||
child: ListView.builder(
|
|
||||||
itemBuilder: (BuildContext context, int index) {
|
|
||||||
return Padding(
|
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 10),
|
|
||||||
child: Column(
|
|
||||||
children: [
|
|
||||||
Woolcard(
|
|
||||||
index,
|
|
||||||
snapshot.data[index].manufacture,
|
|
||||||
snapshot.data[index].title,
|
|
||||||
snapshot.data[index].color,
|
|
||||||
),
|
|
||||||
const SizedBox(
|
|
||||||
height: 15,
|
|
||||||
)
|
|
||||||
],
|
|
||||||
),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
itemCount: snapshot.data.length,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
],
|
),
|
||||||
),
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,6 @@ class Woolcard extends StatelessWidget {
|
||||||
child: IconButton(
|
child: IconButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
showModalBottomSheet(
|
showModalBottomSheet(
|
||||||
showDragHandle: true,
|
|
||||||
context: context,
|
context: context,
|
||||||
builder: (context) {
|
builder: (context) {
|
||||||
return WoolModal(id);
|
return WoolModal(id);
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
class ModalWrapper extends StatelessWidget {
|
class ModalWrapper extends StatelessWidget {
|
||||||
ModalWrapper(this.child, {this.title, key});
|
ModalWrapper(this.child, {super.key});
|
||||||
|
|
||||||
Widget child;
|
Widget child;
|
||||||
String? title;
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return ClipRRect(
|
return ClipRRect(
|
||||||
|
|
@ -12,18 +12,8 @@ class ModalWrapper extends StatelessWidget {
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
width: 750,
|
width: 750,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: EdgeInsets.symmetric(horizontal: 25, vertical: 10),
|
padding: EdgeInsets.all(10),
|
||||||
child: Column(
|
child: child,
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
|
||||||
children: [
|
|
||||||
Text(
|
|
||||||
title ?? "",
|
|
||||||
textAlign: TextAlign.start,
|
|
||||||
style: Theme.of(context).textTheme.headlineMedium,
|
|
||||||
),
|
|
||||||
child
|
|
||||||
],
|
|
||||||
),
|
|
||||||
)));
|
)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Reference in a new issue