introduce bottombar
This commit is contained in:
		@@ -117,49 +117,58 @@ class _MediaGridState extends State<MediaGrid> {
 | 
				
			|||||||
        foregroundColor: const Color.fromARGB(255, 255, 255, 255),
 | 
					        foregroundColor: const Color.fromARGB(255, 255, 255, 255),
 | 
				
			||||||
        title: Row(
 | 
					        title: Row(
 | 
				
			||||||
          mainAxisAlignment: MainAxisAlignment.spaceBetween,
 | 
					          mainAxisAlignment: MainAxisAlignment.spaceBetween,
 | 
				
			||||||
          children: [
 | 
					          children: [const Text('f0cks')],
 | 
				
			||||||
            const Text('f0cks'),
 | 
					        ),
 | 
				
			||||||
            DropdownButton<String>(
 | 
					      ),
 | 
				
			||||||
              value: _selectedMode,
 | 
					      bottomNavigationBar: BottomAppBar(
 | 
				
			||||||
              dropdownColor: const Color.fromARGB(255, 43, 43, 43),
 | 
					        color: const Color.fromARGB(255, 43, 43, 43),
 | 
				
			||||||
              iconEnabledColor: const Color.fromARGB(255, 255, 255, 255),
 | 
					        child: Padding(
 | 
				
			||||||
              items: ["alles", "image", "video", "audio"].map((String value) {
 | 
					          padding: const EdgeInsets.symmetric(horizontal: 16.0),
 | 
				
			||||||
                return DropdownMenuItem<String>(
 | 
					          child: Row(
 | 
				
			||||||
                  value: value,
 | 
					            mainAxisAlignment: MainAxisAlignment.spaceBetween,
 | 
				
			||||||
                  child: Text(value, style: TextStyle(color: Colors.white)),
 | 
					            children: [
 | 
				
			||||||
                );
 | 
					              DropdownButton<String>(
 | 
				
			||||||
              }).toList(),
 | 
					                value: _selectedMode,
 | 
				
			||||||
              onChanged: (String? newValue) {
 | 
					                dropdownColor: const Color.fromARGB(255, 43, 43, 43),
 | 
				
			||||||
                if (newValue != null) {
 | 
					                iconEnabledColor: Colors.white,
 | 
				
			||||||
                  setState(() {
 | 
					                items: ["alles", "image", "video", "audio"].map((String value) {
 | 
				
			||||||
                    _selectedMode = newValue;
 | 
					                  return DropdownMenuItem<String>(
 | 
				
			||||||
                    _refreshMedia();
 | 
					                    value: value,
 | 
				
			||||||
                  });
 | 
					                    child: Text(value, style: TextStyle(color: Colors.white)),
 | 
				
			||||||
                }
 | 
					                  );
 | 
				
			||||||
              },
 | 
					                }).toList(),
 | 
				
			||||||
            ),
 | 
					                onChanged: (String? newValue) {
 | 
				
			||||||
            DropdownButton<int>(
 | 
					                  if (newValue != null) {
 | 
				
			||||||
              value: _crossAxisCount,
 | 
					                    setState(() {
 | 
				
			||||||
              dropdownColor: const Color.fromARGB(255, 43, 43, 43),
 | 
					                      _selectedMode = newValue;
 | 
				
			||||||
              iconEnabledColor: const Color.fromARGB(255, 255, 255, 255),
 | 
					                      _refreshMedia();
 | 
				
			||||||
              items: [3, 4].map((int value) {
 | 
					                    });
 | 
				
			||||||
                return DropdownMenuItem<int>(
 | 
					                  }
 | 
				
			||||||
                  value: value,
 | 
					                },
 | 
				
			||||||
                  child: Text(
 | 
					              ),
 | 
				
			||||||
                    '$value Spalten',
 | 
					              DropdownButton<int>(
 | 
				
			||||||
                    style: TextStyle(color: Colors.white),
 | 
					                value: _crossAxisCount,
 | 
				
			||||||
                  ),
 | 
					                dropdownColor: const Color.fromARGB(255, 43, 43, 43),
 | 
				
			||||||
                );
 | 
					                iconEnabledColor: Colors.white,
 | 
				
			||||||
              }).toList(),
 | 
					                items: [3, 4].map((int value) {
 | 
				
			||||||
              onChanged: (int? newValue) {
 | 
					                  return DropdownMenuItem<int>(
 | 
				
			||||||
                if (newValue != null) {
 | 
					                    value: value,
 | 
				
			||||||
                  setState(() {
 | 
					                    child: Text(
 | 
				
			||||||
                    _crossAxisCount = newValue;
 | 
					                      '$value Spalten',
 | 
				
			||||||
                  });
 | 
					                      style: TextStyle(color: Colors.white),
 | 
				
			||||||
                }
 | 
					                    ),
 | 
				
			||||||
              },
 | 
					                  );
 | 
				
			||||||
            ),
 | 
					                }).toList(),
 | 
				
			||||||
          ],
 | 
					                onChanged: (int? newValue) {
 | 
				
			||||||
 | 
					                  if (newValue != null) {
 | 
				
			||||||
 | 
					                    setState(() {
 | 
				
			||||||
 | 
					                      _crossAxisCount = newValue;
 | 
				
			||||||
 | 
					                    });
 | 
				
			||||||
 | 
					                  }
 | 
				
			||||||
 | 
					                },
 | 
				
			||||||
 | 
					              ),
 | 
				
			||||||
 | 
					            ],
 | 
				
			||||||
 | 
					          ),
 | 
				
			||||||
        ),
 | 
					        ),
 | 
				
			||||||
      ),
 | 
					      ),
 | 
				
			||||||
      body: RefreshIndicator(
 | 
					      body: RefreshIndicator(
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user